blob: fa1c39db259a3a6e1750436b23b31a0cc8579b1c [file] [log] [blame]
error: attribute should be applied to `impl` or free function outside of any `impl` or trait
--> $DIR/unstable_inherent_method.rs:11:5
|
LL | #[unstable_feature_bound(foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn foo();
| --------- not an `impl` or free function
error: attribute should be applied to `impl` or free function outside of any `impl` or trait
--> $DIR/unstable_inherent_method.rs:18:5
|
LL | #[unstable_feature_bound(foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn foo() {}
| ----------- not an `impl` or free function
error: aborting due to 2 previous errors