Skip to content

Commit bf529fb

Browse files
committed
Remove 'static bound in assoc const test.
Types do not have to be `'static` to be referenced in associated consts.
1 parent 63c7721 commit bf529fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/run-pass/associated-const-outer-ty-refs.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ trait Lattice {
1313
const BOTTOM: Self;
1414
}
1515

16-
// FIXME(#33573): this should work without the 'static lifetime bound.
17-
impl<T: 'static> Lattice for Option<T> {
16+
impl<T> Lattice for Option<T> {
1817
const BOTTOM: Option<T> = None;
1918
}
2019

0 commit comments

Comments
 (0)