1 // Ensure that the future_incompatible lint group only includes
2 // lints for changes that are not tied to an edition
3 #![deny(future_incompatible)]
6 // Warn only since this is not a `future_incompatible` lint
7 fn f(u8) {} //~ WARN anonymous parameters are deprecated
8 //~| WARN this is accepted in the current edition
12 // Error since this is a `future_incompatible` lint
13 #![doc(test(some_test))]
14 //~^ ERROR this attribute can only be applied at the crate level
15 //~| WARN this was previously accepted by the compiler