Skip to content

Commit db7f265

Browse files
committed
Fix spans
1 parent f56d285 commit db7f265

7 files changed

+18
-18
lines changed

src/test/ui/existential_types/existential-types-with-no-traits.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: at least one trait must be specified
2-
--> $DIR/existential-types-with-no-traits.rs:3:1
2+
--> $DIR/existential-types-with-no-traits.rs:3:23
33
|
44
LL | existential type Foo: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error: at least one trait must be specified
88
--> $DIR/existential-types-with-no-traits.rs:10:13

src/test/ui/existential_types/generic_nondefining_use.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: at least one trait must be specified
2-
--> $DIR/generic_nondefining_use.rs:5:1
2+
--> $DIR/generic_nondefining_use.rs:5:26
33
|
44
LL | existential type Cmp<T>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error: defining existential type use does not fully define existential type
88
--> $DIR/generic_nondefining_use.rs:11:1

src/test/ui/existential_types/generic_not_used.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: at least one trait must be specified
2-
--> $DIR/generic_not_used.rs:5:1
2+
--> $DIR/generic_not_used.rs:5:44
33
|
44
LL | existential type WrongGeneric<T: 'static>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error: type parameter `V` is part of concrete type but not used in parameter list for existential type
88
--> $DIR/generic_not_used.rs:8:73

src/test/ui/existential_types/generic_type_does_not_live_long_enough.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: at least one trait must be specified
2-
--> $DIR/generic_type_does_not_live_long_enough.rs:9:1
2+
--> $DIR/generic_type_does_not_live_long_enough.rs:9:35
33
|
44
LL | existential type WrongGeneric<T>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error[E0308]: mismatched types
88
--> $DIR/generic_type_does_not_live_long_enough.rs:6:18

src/test/ui/existential_types/generic_underconstrained.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: at least one trait must be specified
2-
--> $DIR/generic_underconstrained.rs:6:1
2+
--> $DIR/generic_underconstrained.rs:6:46
33
|
44
LL | existential type Underconstrained<T: Trait>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error[E0277]: the trait bound `T: Trait` is not satisfied
88
--> $DIR/generic_underconstrained.rs:6:1

src/test/ui/existential_types/generic_underconstrained2.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error: at least one trait must be specified
2-
--> $DIR/generic_underconstrained2.rs:5:1
2+
--> $DIR/generic_underconstrained2.rs:5:56
33
|
44
LL | existential type Underconstrained<T: std::fmt::Debug>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error: at least one trait must be specified
8-
--> $DIR/generic_underconstrained2.rs:14:1
8+
--> $DIR/generic_underconstrained2.rs:14:57
99
|
1010
LL | existential type Underconstrained2<T: std::fmt::Debug>: 'static;
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11+
| ^^^^^^^
1212

1313
error[E0277]: `U` doesn't implement `std::fmt::Debug`
1414
--> $DIR/generic_underconstrained2.rs:5:1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error: at least one trait must be specified
2-
--> $DIR/unused_generic_param.rs:6:1
2+
--> $DIR/unused_generic_param.rs:6:39
33
|
44
LL | existential type PartiallyDefined<T>: 'static;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^
66

77
error: at least one trait must be specified
8-
--> $DIR/unused_generic_param.rs:13:1
8+
--> $DIR/unused_generic_param.rs:13:40
99
|
1010
LL | existential type PartiallyDefined2<T>: 'static;
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11+
| ^^^^^^^
1212

1313
error: aborting due to 2 previous errors
1414

0 commit comments

Comments
 (0)