summaryrefslogtreecommitdiffstats
path: root/src/test/ui/where-clauses/where-for-self-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/where-clauses/where-for-self-2.stderr')
-rw-r--r--src/test/ui/where-clauses/where-for-self-2.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/where-clauses/where-for-self-2.stderr b/src/test/ui/where-clauses/where-for-self-2.stderr
new file mode 100644
index 000000000..f65db78fc
--- /dev/null
+++ b/src/test/ui/where-clauses/where-for-self-2.stderr
@@ -0,0 +1,11 @@
+error: implementation of `Bar` is not general enough
+ --> $DIR/where-for-self-2.rs:23:5
+ |
+LL | foo(&X);
+ | ^^^^^^^ implementation of `Bar` is not general enough
+ |
+ = note: `&'0 u32` must implement `Bar`, for any lifetime `'0`...
+ = note: ...but `Bar` is actually implemented for the type `&'static u32`
+
+error: aborting due to previous error
+