Skip to content

Commit e237aae

Browse files
committed
Some test cleanups
1 parent e9d219e commit e237aae

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

compiler/rustc_typeck/src/outlives/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub(crate) fn insert_outlives_predicate<'tcx>(
105105
// struct Ss<'a, T>(&'a Opaque<T>);
106106
// ```
107107
//
108-
// Here we want to require an explicit `where Opaque<T>: 'a`
108+
// Here we want to have an implied bound `Opaque<T>: 'a`
109109

110110
let ty = tcx.mk_opaque(def_id, substs);
111111
required_predicates

src/test/ui/generic-associated-types/issue-86218-2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ trait Yay<AdditionalValue> {
1717

1818
impl<T> Yay<T> for () {
1919
type InnerStream<'s> = impl Stream<Item = i32> + 's;
20-
//^ ERROR does not fulfill the required lifetime
2120
fn foo<'s>() -> Self::InnerStream<'s> { () }
2221
}
2322

src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check2.rs

-13
This file was deleted.

src/test/ui/type-alias-impl-trait/unbounded_opaque_type.rs

+6
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ type Opaque<T> = impl Sized;
55
fn defining<T>() -> Opaque<T> {}
66
struct Ss<'a, T>(&'a Opaque<T>);
77

8+
9+
fn test<'a, T>(_: Ss<'a, T>) {
10+
// test that we have an implied bound `Opaque<T>: 'a` from fn signature
11+
None::<&'a Opaque<T>>;
12+
}
13+
814
fn main() {}

0 commit comments

Comments
 (0)