]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/method-unsatified-assoc-type-predicate.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / method-unsatified-assoc-type-predicate.stderr
CommitLineData
6a06907d 1error[E0599]: the method `f` exists for struct `S`, but its trait bounds were not satisfied
f2b60f7d 2 --> $DIR/method-unsatified-assoc-type-predicate.rs:28:7
6a06907d
XL
3 |
4LL | struct S;
064997fb 5 | --------
6a06907d 6 | |
064997fb 7 | method `f` not found for this struct
6a06907d
XL
8 | doesn't satisfy `<S as X>::Y<i32> = i32`
9 | doesn't satisfy `S: M`
10...
11LL | a.f();
12 | ^ method cannot be called on `S` due to unsatisfied trait bounds
13 |
5e7ed085 14note: trait bound `<S as X>::Y<i32> = i32` was not satisfied
f2b60f7d 15 --> $DIR/method-unsatified-assoc-type-predicate.rs:12:11
3c0e092e
XL
16 |
17LL | impl<T: X<Y<i32> = i32>> M for T {}
5e7ed085
FG
18 | ^^^^^^^^^^^^ - -
19 | |
20 | unsatisfied trait bound introduced here
6a06907d 21
136023e0 22error: aborting due to previous error
6a06907d
XL
23
24For more information about this error, try `rustc --explain E0599`.