2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2023-08-10 19:23:17 +02:00
|
|
|
|
|
|
|
|
// this test makes sure that the `unfulfilled_lint_expectations` lint
|
2025-03-07 10:50:31 +08:00
|
|
|
// is being emitted for `foo` as foo is not dead code, it's pub
|
2023-08-10 19:23:17 +02:00
|
|
|
|
|
|
|
|
#![warn(dead_code)] // to override compiletest
|
|
|
|
|
|
|
|
|
|
#[expect(dead_code)]
|
|
|
|
|
//~^ WARN this lint expectation is unfulfilled
|
|
|
|
|
pub fn foo() {}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|