diff options
| author | bors <bors@rust-lang.org> | 2017-05-22 06:22:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-22 06:22:52 +0000 |
| commit | 81734e0e06d24cf580dd5352c64d10110e4d3b7b (patch) | |
| tree | 0bf5a508120e381762a7b12fdb7e13a0ec04c4c2 | |
| parent | 41976e25f1c9f2cf40cdd24691dc1f162a2860a2 (diff) | |
| parent | bf529fb6e6c561e8adf7556dd52b542c8498b3c8 (diff) | |
| download | rust-81734e0e06d24cf580dd5352c64d10110e4d3b7b.tar.gz rust-81734e0e06d24cf580dd5352c64d10110e4d3b7b.zip | |
Auto merge of #42147 - withoutboats:run-pass-test-for-static-in-assoc-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.
| -rw-r--r-- | src/test/run-pass/associated-const-outer-ty-refs.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/run-pass/associated-const-outer-ty-refs.rs b/src/test/run-pass/associated-const-outer-ty-refs.rs index a603b225132..2e6fb11a12d 100644 --- a/src/test/run-pass/associated-const-outer-ty-refs.rs +++ b/src/test/run-pass/associated-const-outer-ty-refs.rs @@ -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; } |
