Skip to content

Commit

Permalink
Auto merge of #42147 - withoutboats:run-pass-test-for-static-in-assoc…
Browse files Browse the repository at this point in the history
…-const-ty-refs, r=eddyb

Remove 'static bound in assoc const test.

Types do not have to be `'static` to be referenced in
associated consts.

Fixes #33573.
  • Loading branch information
bors committed May 22, 2017
2 parents 41976e2 + bf529fb commit 81734e0
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 81734e0

Please sign in to comment.