summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/trivial_impl2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/trivial_impl2.rs')
-rw-r--r--tests/ui/traits/trivial_impl2.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/traits/trivial_impl2.rs b/tests/ui/traits/trivial_impl2.rs
new file mode 100644
index 000000000..be5809600
--- /dev/null
+++ b/tests/ui/traits/trivial_impl2.rs
@@ -0,0 +1,13 @@
+//! This test checks that we currently need to implement
+//! members, even if their where bounds don't hold for the impl type.
+
+trait Foo<T> {
+ fn foo()
+ where
+ Self: Foo<()>;
+}
+
+impl Foo<u32> for () {}
+//~^ ERROR: not all trait items implemented, missing: `foo`
+
+fn main() {}