about summary refs log tree commit diff
path: root/src/test/ui/structs/struct-path-alias-bounds.stderr
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2021-07-17 11:13:50 -0700
committerEsteban Küber <esteban@kuber.com.ar>2021-07-19 08:43:35 -0700
commitba052bd8de1459acb6809215b0bedf4ea476ef9a (patch)
treef6ed28030012d73e09f041b7f94d78fced448771 /src/test/ui/structs/struct-path-alias-bounds.stderr
parentc78ebb7bdcfc924a20fd069891ffe1364d6814e7 (diff)
downloadrust-ba052bd8de1459acb6809215b0bedf4ea476ef9a.tar.gz
rust-ba052bd8de1459acb6809215b0bedf4ea476ef9a.zip
Various diagnostics clean ups/tweaks
* Always point at macros, including derive macros
* Point at non-local items that introduce a trait requirement
* On private associated item, point at definition
Diffstat (limited to 'src/test/ui/structs/struct-path-alias-bounds.stderr')
-rw-r--r--src/test/ui/structs/struct-path-alias-bounds.stderr9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/ui/structs/struct-path-alias-bounds.stderr b/src/test/ui/structs/struct-path-alias-bounds.stderr
index cea3d5d4df3..e0a22c2df1a 100644
--- a/src/test/ui/structs/struct-path-alias-bounds.stderr
+++ b/src/test/ui/structs/struct-path-alias-bounds.stderr
@@ -1,11 +1,14 @@
 error[E0277]: the trait bound `NoClone: Clone` is not satisfied
   --> $DIR/struct-path-alias-bounds.rs:9:13
    |
-LL | struct S<T: Clone> { a: T }
-   | ------------------ required by `S`
-...
 LL |     let s = A { a: NoClone };
    |             ^ the trait `Clone` is not implemented for `NoClone`
+   |
+note: required by `S`
+  --> $DIR/struct-path-alias-bounds.rs:3:1
+   |
+LL | struct S<T: Clone> { a: T }
+   | ^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error