]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gate/issue-43106-gating-of-inline.rs
1 // This is testing whether `#[inline]` signals an error or warning
2 // when put in "weird" places.
4 // (This file sits on its own because it actually signals an error,
5 // which would mess up the treatment of other cases in
6 // issue-43106-gating-of-builtin-attrs.rs)
8 // Crate-level is accepted, though it is almost certainly unused?
12 //~^ ERROR attribute should be applied to function or closure
14 mod inner { #![inline] }
15 //~^ ERROR attribute should be applied to function or closure
17 #[inline = "2100"] fn f() { }
18 //~^ WARN attribute must be of the form
19 //~| WARN this was previously accepted
22 //~^ ERROR attribute should be applied to function or closure
25 //~^ ERROR attribute should be applied to function or closure
28 //~^ ERROR attribute should be applied to function or closure