summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs')
-rw-r--r--src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs b/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs
new file mode 100644
index 000000000..07d0f8f87
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs
@@ -0,0 +1,10 @@
+#[allow(dead_code)]
+fn foo<M>(_m: M)
+where
+ M::Item: Temp,
+ //~^ ERROR cannot find trait `Temp` in this scope [E0405]
+ //~| ERROR associated type `Item` not found for `M` [E0220]
+{
+}
+
+fn main() {}