mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Modify ui tests to reflect the change
This commit is contained in:
parent
775328c290
commit
0eaf6d5180
@ -2,7 +2,7 @@ error[E0574]: expected struct, variant or union type, found type parameter `T`
|
||||
--> $DIR/lexical-scopes.rs:3:13
|
||||
|
|
||||
LL | struct T { i: i32 }
|
||||
| ------------------- you might have meant to refer to this struct
|
||||
| - you might have meant to refer to this struct
|
||||
LL | fn f<T>() {
|
||||
| - found this type parameter
|
||||
LL | let t = T { i: 0 };
|
||||
|
@ -1,11 +1,9 @@
|
||||
error[E0574]: expected struct, variant or union type, found type parameter `Baz`
|
||||
--> $DIR/point-at-type-parameter-shadowing-another-type.rs:16:13
|
||||
|
|
||||
LL | / struct Baz {
|
||||
LL | | num: usize,
|
||||
LL | | }
|
||||
| |_- you might have meant to refer to this struct
|
||||
LL |
|
||||
LL | struct Baz {
|
||||
| --- you might have meant to refer to this struct
|
||||
...
|
||||
LL | impl<Baz> Foo<Baz> for Bar {
|
||||
| --- found this type parameter
|
||||
...
|
||||
|
@ -1,6 +1,9 @@
|
||||
error[E0404]: expected trait, found type parameter `Add`
|
||||
--> $DIR/issue-35987.rs:5:21
|
||||
|
|
||||
LL | use std::ops::Add;
|
||||
| --- you might have meant to refer to this trait
|
||||
LL |
|
||||
LL | impl<T: Clone, Add> Add for Foo<T> {
|
||||
| --- ^^^ not a trait
|
||||
| |
|
||||
|
Loading…
Reference in New Issue
Block a user