diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/chalkify/type_wf.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/chalkify/type_wf.stderr b/src/test/ui/chalkify/type_wf.stderr new file mode 100644 index 000000000..7f8566082 --- /dev/null +++ b/src/test/ui/chalkify/type_wf.stderr @@ -0,0 +1,16 @@ +error[E0277]: the trait bound `{float}: Foo` is not satisfied + --> $DIR/type_wf.rs:18:13 + | +LL | let s = S { + | ^ the trait `Foo` is not implemented for `{float}` + | + = help: the trait `Foo` is implemented for `i32` +note: required by a bound in `S` + --> $DIR/type_wf.rs:6:13 + | +LL | struct S<T: Foo> { + | ^^^ required by this bound in `S` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |