Skip to content

Commit 81734e0

Browse files
committed
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.
2 parents 41976e2 + bf529fb commit 81734e0

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)