Skip to content

Commit 0eaf6d5

Browse files
committed
Modify ui tests to reflect the change
1 parent 775328c commit 0eaf6d5

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/test/ui/lexical-scopes.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0574]: expected struct, variant or union type, found type parameter `T`
22
--> $DIR/lexical-scopes.rs:3:13
33
|
44
LL | struct T { i: i32 }
5-
| ------------------- you might have meant to refer to this struct
5+
| - you might have meant to refer to this struct
66
LL | fn f<T>() {
77
| - found this type parameter
88
LL | let t = T { i: 0 };

src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
error[E0574]: expected struct, variant or union type, found type parameter `Baz`
22
--> $DIR/point-at-type-parameter-shadowing-another-type.rs:16:13
33
|
4-
LL | / struct Baz {
5-
LL | | num: usize,
6-
LL | | }
7-
| |_- you might have meant to refer to this struct
8-
LL |
9-
LL | impl<Baz> Foo<Baz> for Bar {
10-
| --- found this type parameter
4+
LL | struct Baz {
5+
| --- you might have meant to refer to this struct
116
...
12-
LL | Baz { num } => num,
13-
| ^^^ not a struct, variant or union type
7+
LL | impl<Baz> Foo<Baz> for Bar {
8+
| --- found this type parameter
9+
...
10+
LL | Baz { num } => num,
11+
| ^^^ not a struct, variant or union type
1412

1513
error: aborting due to previous error
1614

src/test/ui/span/issue-35987.stderr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
error[E0404]: expected trait, found type parameter `Add`
22
--> $DIR/issue-35987.rs:5:21
33
|
4+
LL | use std::ops::Add;
5+
| --- you might have meant to refer to this trait
6+
LL |
47
LL | impl<T: Clone, Add> Add for Foo<T> {
58
| --- ^^^ not a trait
69
| |

0 commit comments

Comments
 (0)