]> git.lizzy.rs Git - rust.git/commitdiff
Remove 'static bound in assoc const test.
authorWithout Boats <woboats@gmail.com>
Mon, 22 May 2017 06:10:01 +0000 (23:10 -0700)
committerWithout Boats <woboats@gmail.com>
Mon, 22 May 2017 06:10:01 +0000 (23:10 -0700)
Types do not have to be `'static` to be referenced in
associated consts.

src/test/run-pass/associated-const-outer-ty-refs.rs

index a603b225132d45ecfade7dd0abf54f1141eaa5a6..2e6fb11a12d6bb6cae799208fd617aa85f4bb35c 100644 (file)
@@ -13,8 +13,7 @@ trait Lattice {
     const BOTTOM: Self;
 }
 
-// FIXME(#33573): this should work without the 'static lifetime bound.
-impl<T: 'static> Lattice for Option<T> {
+impl<T> Lattice for Option<T> {
     const BOTTOM: Option<T> = None;
 }