blob: d2ead24b57ca02525334a86bcab715d9d2817c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ 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() {}
|