]> git.proxmox.com Git - rustc.git/blob - src/test/ui/chalkify/impl_wf.stderr
fb2e0fc1a61699016c5f6e92189f861a47927b75
[rustc.git] / src / test / 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:6
3 |
4 LL | trait Foo: Sized { }
5 | ----- required by this bound in `Foo`
6 ...
7 LL | impl Foo for str { }
8 | ^^^ doesn't have a size known at compile-time
9 |
10 = help: the trait `std::marker::Sized` is not implemented for `str`
11
12 error[E0277]: the trait bound `f32: Foo` is not satisfied
13 --> $DIR/impl_wf.rs:27:17
14 |
15 LL | trait Bar {
16 | --- required by a bound in this
17 LL | type Item: Foo;
18 | --- required by this bound in `Bar`
19 ...
20 LL | type Item = f32;
21 | ^^^ the trait `Foo` is not implemented for `f32`
22
23 error[E0277]: the trait bound `f32: Foo` is not satisfied
24 --> $DIR/impl_wf.rs:35:6
25 |
26 LL | trait Baz<U: ?Sized> where U: Foo { }
27 | --- required by this bound in `Baz`
28 ...
29 LL | impl Baz<f32> for f32 { }
30 | ^^^^^^^^ the trait `Foo` is not implemented for `f32`
31
32 error: aborting due to 3 previous errors
33
34 For more information about this error, try `rustc --explain E0277`.