Closed
Description
Taken from https://doc.rust-lang.org
Erroneous code compiles fine for E0505
A possible way to trigger E0505 in the 2018 edition
Rust version 1.32 on playground
Taken from https://doc.rust-lang.org
Erroneous code compiles fine for E0505
A possible way to trigger E0505 in the 2018 edition
Rust version 1.32 on playground
Activity
gurgalex commentedon Feb 20, 2019
Where are the error code examples in the repo?
[-]compiler error E505 example compiles with 2018 edition[/-][+]compiler error E0505 example compiles with 2018 edition[/+]hellow554 commentedon Feb 20, 2019
rust/src/librustc_mir/diagnostics.rs
Lines 1540 to 1557 in 8af675a
gurgalex commentedon Feb 20, 2019
Which part do I need to build for
rustc --explain E0505
to reflect changes inrust/src/librustc_mir/diagnostics.rs
?Fixes rust-lang#58586: Make E0505 explain example fail for 2018 edition
zackmdavis commentedon Feb 20, 2019
I think a stage 1 build should be fine?
./x.py build -i --stage 1 src/libtest
Rollup merge of rust-lang#58607 - gurgalex:fail_E0505_for_2018_editio…
Rollup merge of rust-lang#58607 - gurgalex:fail_E0505_for_2018_editio…
3 remaining items