fix deny_lint test
This commit is contained in:
parent
2c88ee8e45
commit
b0b76a5db3
@ -1,6 +1,6 @@
|
||||
//@error-in-other-file: miri cannot be run on programs that fail compilation
|
||||
|
||||
#![deny(warnings)]
|
||||
#![deny(warnings, unused)]
|
||||
|
||||
struct Foo;
|
||||
//~^ ERROR: struct `Foo` is never constructed
|
||||
|
@ -4,7 +4,12 @@ error: struct `Foo` is never constructed
|
||||
LL | struct Foo;
|
||||
| ^^^
|
||||
|
|
||||
= note: `-D dead-code` implied by `-D unused`
|
||||
note: the lint level is defined here
|
||||
--> $DIR/deny_lint.rs:LL:CC
|
||||
|
|
||||
LL | #![deny(warnings, unused)]
|
||||
| ^^^^^^
|
||||
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: miri cannot be run on programs that fail compilation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user