mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
14 lines
321 B
Rust
14 lines
321 B
Rust
|
// check-pass
|
||
|
|
||
|
// this test makes sure that the `unfulfilled_lint_expectations` lint
|
||
|
// is being emited for `foo` as foo is not dead code, it's pub
|
||
|
|
||
|
#![feature(lint_reasons)]
|
||
|
#![warn(dead_code)] // to override compiletest
|
||
|
|
||
|
#[expect(dead_code)]
|
||
|
//~^ WARN this lint expectation is unfulfilled
|
||
|
pub fn foo() {}
|
||
|
|
||
|
fn main() {}
|