summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr')
-rw-r--r--src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr b/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr
new file mode 100644
index 000000000..b29766295
--- /dev/null
+++ b/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr
@@ -0,0 +1,19 @@
+error[E0405]: cannot find trait `Trait` in `A`
+ --> $DIR/shadowed-path-in-trait-bound-suggestion.rs:9:24
+ |
+LL | pub struct A<H: A::Trait>(pub H);
+ | ^^^^^ not found in `A`
+ |
+help: consider importing this trait
+ |
+LL | use A::Trait;
+ |
+help: if you import `Trait`, refer to it directly
+ |
+LL - pub struct A<H: A::Trait>(pub H);
+LL + pub struct A<H: Trait>(pub H);
+ |
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0405`.