Skip to content

Commit

Permalink
Remove 'static bound in assoc const test.
Browse files Browse the repository at this point in the history
Types do not have to be `'static` to be referenced in
associated consts.
  • Loading branch information
withoutboats committed May 22, 2017
1 parent 63c7721 commit bf529fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/run-pass/associated-const-outer-ty-refs.rs
Expand Up @@ -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;
}

Expand Down

0 comments on commit bf529fb

Please sign in to comment.