summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/use-before-def.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/use-before-def.rs')
-rw-r--r--tests/ui/traits/use-before-def.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/traits/use-before-def.rs b/tests/ui/traits/use-before-def.rs
new file mode 100644
index 000000000..1ee2b9419
--- /dev/null
+++ b/tests/ui/traits/use-before-def.rs
@@ -0,0 +1,10 @@
+// run-pass
+#![allow(non_camel_case_types)]
+
+// Issue #1761
+
+// pretty-expanded FIXME #23616
+
+impl foo for isize { fn foo(&self) -> isize { 10 } }
+trait foo { fn foo(&self) -> isize; }
+pub fn main() {}