diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-01-23 18:39:05 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-03-15 13:25:10 +0200 |
| commit | 72690d24f02543f5a3c77a8506da48bb32fdc466 (patch) | |
| tree | cc836f798e58230219439f294f57c18baa7b92fa /src/test | |
| parent | 381fa7aa18d0440d122c476bdbd074281a93b6a9 (diff) | |
| download | rust-72690d24f02543f5a3c77a8506da48bb32fdc466.tar.gz rust-72690d24f02543f5a3c77a8506da48bb32fdc466.zip | |
rustc: always hide defaulted generic args, even in verbose mode.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/substs-ppaux.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/substs-ppaux.verbose.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/substs-ppaux.rs b/src/test/ui/substs-ppaux.rs index 7ad7ccb5444..129ebd43594 100644 --- a/src/test/ui/substs-ppaux.rs +++ b/src/test/ui/substs-ppaux.rs @@ -25,7 +25,7 @@ fn foo<'z>() where &'z (): Sized { let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; //[verbose]~^ ERROR mismatched types //[verbose]~| expected type `()` - //[verbose]~| found type `fn() {<i8 as Foo<ReStatic, ReStatic, u32>>::bar::<ReStatic, char>}` + //[verbose]~| found type `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}` //[normal]~^^^^ ERROR mismatched types //[normal]~| expected type `()` //[normal]~| found type `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}` diff --git a/src/test/ui/substs-ppaux.verbose.stderr b/src/test/ui/substs-ppaux.verbose.stderr index 9d8a555dffe..86936475f8c 100644 --- a/src/test/ui/substs-ppaux.verbose.stderr +++ b/src/test/ui/substs-ppaux.verbose.stderr @@ -14,7 +14,7 @@ LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found fn item | = note: expected type `()` - found type `fn() {<i8 as Foo<ReStatic, ReStatic, u32>>::bar::<ReStatic, char>}` + found type `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}` error[E0308]: mismatched types --> $DIR/substs-ppaux.rs:33:17 |
