fix deny_lint test

This commit is contained in:
Ralf Jung 2023-05-11 10:09:20 +02:00
parent 2c88ee8e45
commit b0b76a5db3
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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