blob: db9759b4cc3a571fe8f31ea1ad6e10d3ed8dd90c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
error: unstable feature `feat_foo` is used without being enabled.
--> $DIR/unstable-impl-assoc-type.rs:23:16
|
LL | type Assoc = Self;
| ^^^^
|
= help: The feature can be enabled by marking the current item with `#[unstable_feature_bound(feat_foo)]`
note: required for `Foo` to implement `Bar`
--> $DIR/unstable-impl-assoc-type.rs:19:6
|
LL | #[unstable_feature_bound(feat_foo)]
| ----------------------------------- unsatisfied trait bound introduced here
LL | impl Bar for Foo {}
| ^^^ ^^^
note: required by a bound in `Trait::Assoc`
--> $DIR/unstable-impl-assoc-type.rs:13:17
|
LL | type Assoc: Bar;
| ^^^ required by this bound in `Trait::Assoc`
error: aborting due to 1 previous error
|