diff options
| author | Without Boats <woboats@gmail.com> | 2017-05-21 23:10:01 -0700 |
|---|---|---|
| committer | Without Boats <woboats@gmail.com> | 2017-05-21 23:10:01 -0700 |
| commit | bf529fb6e6c561e8adf7556dd52b542c8498b3c8 (patch) | |
| tree | 0f13b4bed736fea4083f3439dcd7ca7a1149774f | |
| parent | 63c77214c1d38789652b465694b254205d1886e0 (diff) | |
| download | rust-bf529fb6e6c561e8adf7556dd52b542c8498b3c8.tar.gz rust-bf529fb6e6c561e8adf7556dd52b542c8498b3c8.zip | |
Remove 'static bound in assoc const test.
Types do not have to be `'static` to be referenced in associated consts.
| -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; } |
