fix deny_lint test
This commit is contained in:
parent
2c88ee8e45
commit
b0b76a5db3
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
//@error-in-other-file: miri cannot be run on programs that fail compilation
|
//@error-in-other-file: miri cannot be run on programs that fail compilation
|
||||||
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings, unused)]
|
||||||
|
|
||||||
struct Foo;
|
struct Foo;
|
||||||
//~^ ERROR: struct `Foo` is never constructed
|
//~^ ERROR: struct `Foo` is never constructed
|
||||||
|
|
|
@ -4,7 +4,12 @@ error: struct `Foo` is never constructed
|
||||||
LL | struct Foo;
|
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
|
error: miri cannot be run on programs that fail compilation
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue