]> git.lizzy.rs Git - rust.git/blob - tests/ui/chalkify/generic_impls.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / chalkify / generic_impls.stderr
1 error[E0277]: the trait bound `(Option<T>, f32): Foo` is not satisfied
2   --> $DIR/generic_impls.rs:12:13
3    |
4 LL |     gimme::<(Option<T>, f32)>();
5    |             ^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `(Option<T>, f32)`
6    |
7    = help: the trait `Foo` is implemented for `(T, u32)`
8 note: required by a bound in `gimme`
9   --> $DIR/generic_impls.rs:7:13
10    |
11 LL | fn gimme<F: Foo>() { }
12    |             ^^^ required by this bound in `gimme`
13
14 error[E0277]: the trait bound `(i32, f32): Foo` is not satisfied
15   --> $DIR/generic_impls.rs:17:13
16    |
17 LL |     gimme::<(i32, f32)>();
18    |             ^^^^^^^^^^ the trait `Foo` is not implemented for `(i32, f32)`
19    |
20    = help: the trait `Foo` is implemented for `(T, u32)`
21 note: required by a bound in `gimme`
22   --> $DIR/generic_impls.rs:7:13
23    |
24 LL | fn gimme<F: Foo>() { }
25    |             ^^^ required by this bound in `gimme`
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.