File tree 2 files changed +3
-3
lines changed
src/tools/clippy/tests/ui
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 30
30
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
31
31
#![ doc( rust_logo) ]
32
32
#![ feature( array_windows) ]
33
- #![ feature( box_patterns) ]
34
33
#![ feature( box_into_inner) ]
34
+ #![ feature( box_patterns) ]
35
35
#![ feature( control_flow_enum) ]
36
36
#![ feature( extract_if) ]
37
37
#![ feature( if_let_guard) ]
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ fn main() {
62
62
x[ const { idx4 ( ) } ] ;
63
63
// This should be linted, since `suppress-restriction-lint-in-const` default is false.
64
64
const { & ARR [ idx ( ) ] } ;
65
- // ERROR: indexing may panic
65
+ // ~^ ERROR: indexing may panic
66
66
// This should be linted, since `suppress-restriction-lint-in-const` default is false.
67
67
const { & ARR [ idx4 ( ) ] } ;
68
- // ERROR: indexing may panic
68
+ // ~^ ERROR: indexing may panic
69
69
70
70
let y = & x;
71
71
// Ok, referencing shouldn't affect this lint. See the issue 6021
You can’t perform that action at this time.
0 commit comments