2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-08-10 12:23:17 -05:00
|
|
|
|
|
|
|
// 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() {}
|