]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | #![feature(prelude_import)] |
2 | #![no_std] | |
3 | // This ensures that ICEs like rust#94953 don't happen | |
4 | // check-pass | |
5 | // compile-flags: -Z unpretty=expanded | |
6 | ||
7 | #![feature(lint_reasons)] | |
8 | #[prelude_import] | |
9 | use ::std::prelude::rust_2015::*; | |
10 | #[macro_use] | |
11 | extern crate std; | |
12 | ||
13 | // This `expect` will create an expectation with an unstable expectation id | |
14 | #[expect(while_true)] | |
15 | fn create_early_lint_pass_expectation() { | |
16 | // `while_true` is an early lint | |
17 | while true {} | |
18 | } | |
19 | ||
20 | fn main() { create_early_lint_pass_expectation(); } |