mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
e38032fb3a
We were previously telling people to write what was already there, instead of removal. ``` error[E0229]: associated item constraints are not allowed here --> $DIR/E0229.rs:13:25 | LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {} | ^^^^^^^ associated item constraint not allowed here | help: consider removing this associated item binding | LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {} LL + fn baz<I>(x: &<I as Foo>::A) {} | ```
29 lines
883 B
Plaintext
29 lines
883 B
Plaintext
error[E0229]: associated item constraints are not allowed here
|
|
--> $DIR/issue-102467.rs:7:17
|
|
|
|
|
LL | type A: S<C<X = 0i32> = 34>;
|
|
| ^^^^^^^^ associated item constraint not allowed here
|
|
|
|
|
help: consider removing this associated item binding
|
|
|
|
|
LL - type A: S<C<X = 0i32> = 34>;
|
|
LL + type A: S<C = 34>;
|
|
|
|
|
|
|
error[E0229]: associated item constraints are not allowed here
|
|
--> $DIR/issue-102467.rs:7:17
|
|
|
|
|
LL | type A: S<C<X = 0i32> = 34>;
|
|
| ^^^^^^^^ associated item constraint not allowed here
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
help: consider removing this associated item binding
|
|
|
|
|
LL - type A: S<C<X = 0i32> = 34>;
|
|
LL + type A: S<C = 34>;
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0229`.
|