about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable_inherent_method.stderr
blob: 3438e84079dfb9ea9761f77b5d5ffdf05fb307ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: `#[unstable_feature_bound]` attribute cannot be used on required trait methods
  --> $DIR/unstable_inherent_method.rs:11:5
   |
LL |     #[unstable_feature_bound(foo)]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[unstable_feature_bound]` can be applied to functions, trait impl blocks, and traits

error: `#[unstable_feature_bound]` attribute cannot be used on trait methods in impl blocks
  --> $DIR/unstable_inherent_method.rs:18:5
   |
LL |     #[unstable_feature_bound(foo)]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[unstable_feature_bound]` can be applied to functions, trait impl blocks, and traits

error: aborting due to 2 previous errors