about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable-impl-cannot-use-feature.fail.stderr
blob: d56072362fe239dd726052661223a2326083a7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: unstable feature `feat_foo` is used without being enabled.
  --> $DIR/unstable-impl-cannot-use-feature.rs:26:5
   |
LL |     Bar::foo();
   |     ^^^
   |
   = help: The feature can be enabled by marking the current item with `#[unstable_feature_bound(feat_foo)]`
note: required for `Bar` to implement `Foo`
  --> $DIR/unstable-impl-cannot-use-feature.rs:20:6
   |
LL | #[unstable_feature_bound(feat_foo)]
   | ----------------------------------- unsatisfied trait bound introduced here
LL | impl Foo for Bar {
   |      ^^^     ^^^

error: aborting due to 1 previous error