diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-11-08 18:14:41 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-11-22 14:14:27 -0800 |
| commit | b6f4b29c6df3fc78adbda9c915f01f8e354d9ca1 (patch) | |
| tree | 96d3a90a5dd8f6e3d0358e77da7532a126f4cefc /src/test/ui/error-codes | |
| parent | 286f7ae1dde03478fc0f36b7d1f3dc97cb47b730 (diff) | |
| download | rust-b6f4b29c6df3fc78adbda9c915f01f8e354d9ca1.tar.gz rust-b6f4b29c6df3fc78adbda9c915f01f8e354d9ca1.zip | |
Point at the associated type's def span
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0107-b.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0191.stderr | 3 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0220.stderr | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0107-b.stderr b/src/test/ui/error-codes/E0107-b.stderr index f779ca1e0b1..1e8c683aff6 100644 --- a/src/test/ui/error-codes/E0107-b.stderr +++ b/src/test/ui/error-codes/E0107-b.stderr @@ -9,6 +9,12 @@ LL | pub struct Foo { i: Box<T<usize, usize, usize, usize, B=usize>> } error[E0191]: the value of the associated types `A` (from the trait `T`), `C` (from the trait `T`) must be specified --> $DIR/E0107-b.rs:6:26 | +LL | type A; + | ------- `A` defined here +LL | type B; +LL | type C; + | ------- `C` defined here +LL | } LL | pub struct Foo { i: Box<T<usize, usize, usize, usize, B=usize>> } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | diff --git a/src/test/ui/error-codes/E0191.stderr b/src/test/ui/error-codes/E0191.stderr index 08b0a845814..a1f7c935c4a 100644 --- a/src/test/ui/error-codes/E0191.stderr +++ b/src/test/ui/error-codes/E0191.stderr @@ -1,6 +1,9 @@ error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified --> $DIR/E0191.rs:15:12 | +LL | type Bar; + | --------- `Bar` defined here +... LL | type Foo = Trait; //~ ERROR E0191 | ^^^^^ missing associated type `Bar` value diff --git a/src/test/ui/error-codes/E0220.stderr b/src/test/ui/error-codes/E0220.stderr index c8a587f2b53..7ddd912d4f2 100644 --- a/src/test/ui/error-codes/E0220.stderr +++ b/src/test/ui/error-codes/E0220.stderr @@ -7,6 +7,9 @@ LL | type Foo = Trait<F=i32>; //~ ERROR E0220 error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified --> $DIR/E0220.rs:15:12 | +LL | type Bar; + | --------- `Bar` defined here +... LL | type Foo = Trait<F=i32>; //~ ERROR E0220 | ^^^^^^^^^^^^ missing associated type `Bar` value |
