summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/missing_lifetime_const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/missing_lifetime_const.rs')
-rw-r--r--tests/ui/generic-associated-types/missing_lifetime_const.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/missing_lifetime_const.rs b/tests/ui/generic-associated-types/missing_lifetime_const.rs
new file mode 100644
index 000000000..8b174b9e9
--- /dev/null
+++ b/tests/ui/generic-associated-types/missing_lifetime_const.rs
@@ -0,0 +1,10 @@
+trait Foo {
+ type Assoc<'a, const N: usize>;
+}
+
+fn foo<T: Foo>() {
+ let _: <T as Foo>::Assoc<3>;
+ //~^ ERROR this associated type
+}
+
+fn main() {}