about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable_feature_bound_on_trait.fail.stderr
blob: 69be101a40d2afe28744e05c2c7d03eacd0c8331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: unstable feature `foo` is used without being enabled.
  --> $DIR/unstable_feature_bound_on_trait.rs:28:5
   |
LL |     Foo::bar();
   |     ^^^^^^^^^^
   |
   = help: The feature can be enabled by marking the current item with `#[unstable_feature_bound(foo)]`
note: required by a bound in `Bar::bar`
  --> $DIR/unstable_feature_bound_on_trait.rs:16:1
   |
LL | #[unstable_feature_bound(foo)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Bar::bar`
...
LL |     fn bar() {}
   |        --- required by a bound in this associated function

error: aborting due to 1 previous error