diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-08-24 14:44:43 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-08-31 00:14:23 -0700 |
| commit | 444bc3ca6607f7bdeb088b34db23c01e056900b1 (patch) | |
| tree | 343a1c1c7a089fef85c62c8cc7400062b48463cd /src/test/ui/structs | |
| parent | 2d851b33181b1404856cb1d8b20d261adda54ffb (diff) | |
| download | rust-444bc3ca6607f7bdeb088b34db23c01e056900b1.tar.gz rust-444bc3ca6607f7bdeb088b34db23c01e056900b1.zip | |
Use span label instead of note for cause in E0631
Diffstat (limited to 'src/test/ui/structs')
| -rw-r--r-- | src/test/ui/structs/struct-path-alias-bounds.stderr | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/ui/structs/struct-path-alias-bounds.stderr b/src/test/ui/structs/struct-path-alias-bounds.stderr index 70eb2610ea5..1c2c205e01c 100644 --- a/src/test/ui/structs/struct-path-alias-bounds.stderr +++ b/src/test/ui/structs/struct-path-alias-bounds.stderr @@ -1,14 +1,11 @@ error[E0277]: the trait bound `NoClone: std::clone::Clone` is not satisfied --> $DIR/struct-path-alias-bounds.rs:9:13 | +LL | struct S<T: Clone> { a: T } + | ------------------ required by `S` +... LL | let s = A { a: NoClone }; | ^ the trait `std::clone::Clone` is not implemented for `NoClone` - | -note: required by `S` - --> $DIR/struct-path-alias-bounds.rs:3:1 - | -LL | struct S<T: Clone> { a: T } - | ^^^^^^^^^^^^^^^^^^ error: aborting due to previous error |
