We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4fddf0 commit 9e46ddcCopy full SHA for 9e46ddc
src/test/ui/const-generics/const-param-elided-lifetime.rs
@@ -1,3 +1,8 @@
1
+// Elided lifetimes within the type of a const generic parameters is disallowed. This matches the
2
+// behaviour of trait bounds where `fn foo<T: Ord<&u8>>() {}` is illegal. Though we could change
3
+// elided lifetimes within the type of a const generic parameters to be 'static, like elided
4
+// lifetimes within const/static items.
5
+
6
#![feature(const_generics)]
7
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
8
0 commit comments