Skip to content

Commit

Permalink
Added comment about behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinnyBat committed Jan 12, 2020
1 parent b4fddf0 commit 9e46ddc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/ui/const-generics/const-param-elided-lifetime.rs
@@ -1,3 +1,8 @@
// Elided lifetimes within the type of a const generic parameters is disallowed. This matches the
// behaviour of trait bounds where `fn foo<T: Ord<&u8>>() {}` is illegal. Though we could change
// elided lifetimes within the type of a const generic parameters to be 'static, like elided
// lifetimes within const/static items.

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

Expand Down

0 comments on commit 9e46ddc

Please sign in to comment.