Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/ui/generic-associated-types/issue-90014-tait2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//! Unfortunately we don't even reach opaque type collection, as we ICE in typeck before that.
//! See #109281 for the original report.
//@ edition:2018
//@ error-pattern: expected generic lifetime parameter, found `'a`

#![feature(type_alias_impl_trait)]

use std::future::Future;
Expand All @@ -24,6 +22,7 @@ impl<'x, T: 'x> Trait<'x> for (T,) {
impl Foo<'_> {
fn make_fut(&self) -> Box<dyn for<'a> Trait<'a, Thing = Fut<'a>>> {
Box::new((async { () },))
//~^ ERROR expected generic lifetime parameter, found `'a`
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/generic-associated-types/issue-90014-tait2.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0792]: expected generic lifetime parameter, found `'a`
--> $DIR/issue-90014-tait2.rs:26:9
--> $DIR/issue-90014-tait2.rs:24:9
|
LL | type Fut<'a> = impl Future<Output = ()>;
| -- this generic parameter must be used with a generic lifetime parameter
Expand Down
14 changes: 0 additions & 14 deletions tests/ui/traits/sized-coniductive.rs

This file was deleted.

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui/traits/solver-cycles/129541-recursive-struct.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
// Regression test for #129541

//@ revisions: unique multiple
//@ check-pass

trait Bound {}
trait Normalize {
type Assoc;
}

#[cfg(multiple)]
impl<T: Bound> Normalize for T {
type Assoc = T;
}
impl<T: Bound> Normalize for [T] {
type Assoc = T;
}
Expand Down
3 changes: 1 addition & 2 deletions tests/ui/wf/wf-trait-default-fn-ret.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Check that we test WF conditions for fn arguments. Because the
// current code is so goofy, this is only a warning for now.
// Check that we test WF conditions for fn arguments.

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/wf/wf-trait-default-fn-ret.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error[E0277]: the trait bound `Self: Eq` is not satisfied
--> $DIR/wf-trait-default-fn-ret.rs:11:22
--> $DIR/wf-trait-default-fn-ret.rs:10:22
|
LL | fn bar(&self) -> Bar<Self> {
| ^^^^^^^^^ the trait `Eq` is not implemented for `Self`
|
note: required by a bound in `Bar`
--> $DIR/wf-trait-default-fn-ret.rs:8:14
--> $DIR/wf-trait-default-fn-ret.rs:7:14
|
LL | struct Bar<T:Eq+?Sized> { value: Box<T> }
| ^^ required by this bound in `Bar`
Expand Down
Loading