summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-7575.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-7575.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-7575.rs b/src/test/ui/issues/issue-7575.rs
new file mode 100644
index 000000000..ac69f2b1c
--- /dev/null
+++ b/src/test/ui/issues/issue-7575.rs
@@ -0,0 +1,17 @@
+// run-pass
+
+trait Foo {
+ fn new() -> bool { false }
+ fn dummy(&self) { }
+}
+
+trait Bar {
+ fn new(&self) -> bool { true }
+}
+
+impl Bar for isize {}
+impl Foo for isize {}
+
+fn main() {
+ assert!(1.new());
+}