summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-consts/associated-const-outer-ty-refs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-consts/associated-const-outer-ty-refs.rs')
-rw-r--r--src/test/ui/associated-consts/associated-const-outer-ty-refs.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/associated-consts/associated-const-outer-ty-refs.rs b/src/test/ui/associated-consts/associated-const-outer-ty-refs.rs
new file mode 100644
index 000000000..f32ca0ccc
--- /dev/null
+++ b/src/test/ui/associated-consts/associated-const-outer-ty-refs.rs
@@ -0,0 +1,10 @@
+// run-pass
+trait Lattice {
+ const BOTTOM: Self;
+}
+
+impl<T> Lattice for Option<T> {
+ const BOTTOM: Option<T> = None;
+}
+
+fn main(){}