Skip to content

Commit 9e46ddc

Browse files
committed
Added comment about behaviour.
1 parent b4fddf0 commit 9e46ddc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/test/ui/const-generics/const-param-elided-lifetime.rs

+5
Original file line numberDiff line numberDiff line change
@@ -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+
16
#![feature(const_generics)]
27
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
38

0 commit comments

Comments
 (0)