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
4 changes: 4 additions & 0 deletions tests/ui/closures/supertrait-hint-cycle.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//@ edition:2021
//@ revisions: old next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@[next] ignore-test: trait-system-refactor-initiative#242
//@ check-pass

#![feature(type_alias_impl_trait)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//@ compile-flags: -Znext-solver
//@ ignore-test (see #114196)
//@ revisions: old next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@ check-pass

trait Trait {
type Gat<'lt>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: function cannot return without recursing
--> $DIR/error-tainting-issue-122904.rs:12:1
--> $DIR/error-tainting-issue-122904.rs:18:1
|
LL | fn with_positive(fun: impl Fn(Alias<'_>)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
Expand All @@ -11,7 +11,7 @@ LL | with_positive(|&n| ());
= note: `#[warn(unconditional_recursion)]` on by default

error[E0507]: cannot move out of a shared reference
--> $DIR/error-tainting-issue-122904.rs:14:20
--> $DIR/error-tainting-issue-122904.rs:20:20
|
LL | with_positive(|&n| ());
| ^-
Expand Down
6 changes: 6 additions & 0 deletions tests/ui/type-alias-impl-trait/error-tainting-issue-122904.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// We previously didn't taint the borrowck result in this test,
// causing an ICE later on.
#![feature(type_alias_impl_trait)]

//@ revisions: old next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@[next] ignore-test: trait-system-refactor-initiative#242

trait T {}

type Alias<'a> = impl T;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: function cannot return without recursing
--> $DIR/recursive-drop-elaboration-2.rs:13:1
--> $DIR/recursive-drop-elaboration-2.rs:18:1
|
LL | fn with_positive(fun: impl Fn(Alias<'_>)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
Expand All @@ -11,7 +11,7 @@ LL | with_positive(|&n| ());
= note: `#[warn(unconditional_recursion)]` on by default

error[E0507]: cannot move out of a shared reference
--> $DIR/recursive-drop-elaboration-2.rs:15:20
--> $DIR/recursive-drop-elaboration-2.rs:20:20
|
LL | with_positive(|&n| ());
| ^-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//! Regression test for ICE #139556

//@ revisions: old next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@[next] ignore-test: trait-system-refactor-initiative#242

#![feature(type_alias_impl_trait)]

trait T {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: function cannot return without recursing
--> $DIR/recursive-drop-elaboration.rs:13:1
--> $DIR/recursive-drop-elaboration.rs:18:1
|
LL | fn with_positive(fun: impl Fn(Alias<'_>)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
Expand All @@ -11,7 +11,7 @@ LL | with_positive(|&n| ());
= note: `#[warn(unconditional_recursion)]` on by default

error[E0507]: cannot move out of a shared reference
--> $DIR/recursive-drop-elaboration.rs:15:20
--> $DIR/recursive-drop-elaboration.rs:20:20
|
LL | with_positive(|&n| ());
| ^-
Expand All @@ -25,7 +25,7 @@ LL + with_positive(|n| ());
|

error[E0507]: cannot move out of a shared reference
--> $DIR/recursive-drop-elaboration.rs:22:20
--> $DIR/recursive-drop-elaboration.rs:27:20
|
LL | with_positive(|&a| ());
| ^-
Expand All @@ -39,7 +39,7 @@ LL + with_positive(|a| ());
|

error[E0580]: `main` function has wrong type
--> $DIR/recursive-drop-elaboration.rs:20:1
--> $DIR/recursive-drop-elaboration.rs:25:1
|
LL | type Alias<'a> = impl T;
| ------ the found opaque type
Expand Down
5 changes: 5 additions & 0 deletions tests/ui/type-alias-impl-trait/recursive-drop-elaboration.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//! Regression test for #122904.

//@ revisions: old next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@[next] ignore-test: trait-system-refactor-initiative#242

#![feature(type_alias_impl_trait)]

trait T {}
Expand Down
Loading