]> git.lizzy.rs Git - rust.git/blob - tests/ui/future-incompatible-lint-group.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / future-incompatible-lint-group.rs
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)]
4
5 trait Tr {
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
9 }
10
11 pub mod submodule {
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
16 }
17
18 fn main() {}