mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user