summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0276.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0276.rs')
-rw-r--r--tests/ui/error-codes/E0276.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0276.rs b/tests/ui/error-codes/E0276.rs
new file mode 100644
index 000000000..5e3d9f602
--- /dev/null
+++ b/tests/ui/error-codes/E0276.rs
@@ -0,0 +1,10 @@
+trait Foo {
+ fn foo<T>(x: T);
+}
+
+impl Foo for bool {
+ fn foo<T>(x: T) where T: Copy {} //~ ERROR E0276
+}
+
+fn main() {
+}