1
Fork 0
rust/tests/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
184 B
Rust
Raw Normal View History

// should error due to missing feature gate.
#![warn(unused)]
#[expect(unused)]
//~^ ERROR: the `#[expect]` attribute is an experimental feature [E0658]
fn main() {
let x = 1;
}