]> git.lizzy.rs Git - rust.git/blob - tests/ui/chalkify/impl_wf.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / chalkify / impl_wf.stderr
1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2   --> $DIR/impl_wf.rs:11:14
3    |
4 LL | impl Foo for str { }
5    |              ^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `str`
8 note: required by a bound in `Foo`
9   --> $DIR/impl_wf.rs:3:12
10    |
11 LL | trait Foo: Sized { }
12    |            ^^^^^ required by this bound in `Foo`
13
14 error[E0277]: the trait bound `f32: Foo` is not satisfied
15   --> $DIR/impl_wf.rs:22:19
16    |
17 LL | impl Baz<f32> for f32 { }
18    |                   ^^^ the trait `Foo` is not implemented for `f32`
19    |
20    = help: the trait `Foo` is implemented for `i32`
21 note: required by a bound in `Baz`
22   --> $DIR/impl_wf.rs:18:31
23    |
24 LL | trait Baz<U: ?Sized> where U: Foo { }
25    |                               ^^^ required by this bound in `Baz`
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.