Update ui tests
This commit is contained in:
parent
d8bf4f19a3
commit
e58e144e66
@ -23,4 +23,10 @@ fn main() {
|
|||||||
<Foo>::trait_bar => {}
|
<Foo>::trait_bar => {}
|
||||||
//~^ ERROR expected unit struct/variant or constant, found method `<Foo>::trait_bar`
|
//~^ ERROR expected unit struct/variant or constant, found method `<Foo>::trait_bar`
|
||||||
}
|
}
|
||||||
|
if let Foo::bar = 0u32 {}
|
||||||
|
//~^ ERROR expected unit struct/variant or constant, found method `<Foo>::bar`
|
||||||
|
if let <Foo>::bar = 0u32 {}
|
||||||
|
//~^ ERROR expected unit struct/variant or constant, found method `<Foo>::bar`
|
||||||
|
if let Foo::trait_bar = 0u32 {}
|
||||||
|
//~^ ERROR expected unit struct/variant or constant, found method `<Foo>::trait_bar`
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,24 @@ error[E0533]: expected unit struct/variant or constant, found method `<Foo>::tra
|
|||||||
LL | <Foo>::trait_bar => {}
|
LL | <Foo>::trait_bar => {}
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
|
||||||
|
--> $DIR/method-path-in-pattern.rs:26:12
|
||||||
|
|
|
||||||
|
LL | if let Foo::bar = 0u32 {}
|
||||||
|
| ^^^^^^^^
|
||||||
|
|
||||||
|
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
|
||||||
|
--> $DIR/method-path-in-pattern.rs:28:12
|
||||||
|
|
|
||||||
|
LL | if let <Foo>::bar = 0u32 {}
|
||||||
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
|
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::trait_bar`
|
||||||
|
--> $DIR/method-path-in-pattern.rs:30:12
|
||||||
|
|
|
||||||
|
LL | if let Foo::trait_bar = 0u32 {}
|
||||||
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
error: aborting due to 6 previous errors
|
||||||
|
|
||||||
|
For more information about this error, try `rustc --explain E0533`.
|
||||||
|
@ -15,4 +15,5 @@ LL | 0 ..= <S as Tr>::A::f::<u8> => {}
|
|||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0029`.
|
Some errors have detailed explanations: E0029, E0533.
|
||||||
|
For more information about an error, try `rustc --explain E0029`.
|
||||||
|
@ -6,3 +6,4 @@ LL | Self::A => (),
|
|||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
For more information about this error, try `rustc --explain E0533`.
|
||||||
|
@ -39,5 +39,5 @@ LL | let Alias::Unit() = panic!();
|
|||||||
|
|
||||||
error: aborting due to 5 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
||||||
Some errors have detailed explanations: E0164, E0618.
|
Some errors have detailed explanations: E0164, E0533, E0618.
|
||||||
For more information about an error, try `rustc --explain E0164`.
|
For more information about an error, try `rustc --explain E0164`.
|
||||||
|
Loading…
Reference in New Issue
Block a user