about summary refs log tree commit diff
path: root/src/test/ui/structs
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2018-10-10 20:49:45 -0700
committerZack M. Davis <code@zackmdavis.net>2018-10-11 21:10:35 -0700
commita5de379b55d993db1dafd8e5bbc216d01be83893 (patch)
treeaf1599b7553800b7dbf180637f0d8fc287e4d5eb /src/test/ui/structs
parent77af314083e5acabf9ba5335e47271f35eef2e99 (diff)
downloadrust-a5de379b55d993db1dafd8e5bbc216d01be83893.tar.gz
rust-a5de379b55d993db1dafd8e5bbc216d01be83893.zip
structured suggestion for E0223 ambiguous associated type
It looks like we tend to use angle-brackets around the placeholder in
the few other places we use `Applicability::HasPlaceholders`, but that
would be confusing here, so ...
Diffstat (limited to 'src/test/ui/structs')
-rw-r--r--src/test/ui/structs/struct-path-associated-type.stderr12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/test/ui/structs/struct-path-associated-type.stderr b/src/test/ui/structs/struct-path-associated-type.stderr
index 1364b2a6b0c..873e7bb7b83 100644
--- a/src/test/ui/structs/struct-path-associated-type.stderr
+++ b/src/test/ui/structs/struct-path-associated-type.stderr
@@ -32,9 +32,7 @@ error[E0223]: ambiguous associated type
   --> $DIR/struct-path-associated-type.rs:42:13
    |
 LL |     let s = S::A {}; //~ ERROR ambiguous associated type
-   |             ^^^^ ambiguous associated type
-   |
-   = note: specify the type using the syntax `<S as Trait>::A`
+   |             ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
 
 error[E0109]: type parameters are not allowed on this type
   --> $DIR/struct-path-associated-type.rs:43:20
@@ -46,17 +44,13 @@ error[E0223]: ambiguous associated type
   --> $DIR/struct-path-associated-type.rs:43:13
    |
 LL |     let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
-   |             ^^^^^^^^^^ ambiguous associated type
-   |
-   = note: specify the type using the syntax `<S as Trait>::A`
+   |             ^^^^^^^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
 
 error[E0223]: ambiguous associated type
   --> $DIR/struct-path-associated-type.rs:46:9
    |
 LL |         S::A {} => {} //~ ERROR ambiguous associated type
-   |         ^^^^ ambiguous associated type
-   |
-   = note: specify the type using the syntax `<S as Trait>::A`
+   |         ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
 
 error: aborting due to 9 previous errors