fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: the function or associated item `f` exists for struct `Foo<()>`, but its trait bounds were not satisfied 2 --> $DIR/issue-108132-unmet-trait-alias-bound-on-generic-impl.rs:14:16 3 | 4LL | struct Foo<I>(I); 5 | ------------- function or associated item `f` not found for this struct 6... 7LL | Foo::<()>::f() 8 | ^ function or associated item cannot be called on `Foo<()>` due to unsatisfied trait bounds 9 | 10note: trait bound `(): Iterator` was not satisfied 11 --> $DIR/issue-108132-unmet-trait-alias-bound-on-generic-impl.rs:5:23 12 | 13LL | trait IteratorAlias = Iterator; 14 | ------------- ^^^^^^^^ unsatisfied trait bound introduced here 15note: trait bound `(): IteratorAlias` was not satisfied 16 --> $DIR/issue-108132-unmet-trait-alias-bound-on-generic-impl.rs:9:9 17 | 18LL | impl<I: IteratorAlias> Foo<I> { 19 | ^^^^^^^^^^^^^ ------ 20 | | 21 | unsatisfied trait bound introduced here 22 23error: aborting due to previous error 24 25For more information about this error, try `rustc --explain E0599`.