Fix some tests to *only* test their main issue and not have secondary failures

This commit is contained in:
Oli Scherer 2023-07-04 08:28:35 +00:00
parent 97d831d008
commit 9cacfae3e9
4 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@
// FIXME This should compile, but it currently doesn't // FIXME This should compile, but it currently doesn't
mod m { mod m {
type Foo = impl std::fmt::Debug; pub type Foo = impl std::fmt::Debug;
//~^ ERROR: cycle detected when computing type of `m::Foo::{opaque#0}` [E0391] //~^ ERROR: cycle detected when computing type of `m::Foo::{opaque#0}` [E0391]
pub fn foo() -> Foo { pub fn foo() -> Foo {

View File

@ -1,8 +1,8 @@
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
--> $DIR/auto-trait-leakage3.rs:7:16 --> $DIR/auto-trait-leakage3.rs:7:20
| |
LL | type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/auto-trait-leakage3.rs:15:9 --> $DIR/auto-trait-leakage3.rs:15:9

View File

@ -2,7 +2,7 @@
#![allow(dead_code)] #![allow(dead_code)]
mod m { mod m {
type Foo = impl std::fmt::Debug; pub type Foo = impl std::fmt::Debug;
//~^ ERROR cycle detected //~^ ERROR cycle detected
// Cycle: error today, but it'd be nice if it eventually worked // Cycle: error today, but it'd be nice if it eventually worked
@ -16,7 +16,7 @@ mod m {
} }
fn baz() { fn baz() {
let f: Foo = 22_u32; let f: Foo = ();
} }
fn is_send<T: Send>(_: T) {} fn is_send<T: Send>(_: T) {}

View File

@ -1,8 +1,8 @@
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
--> $DIR/inference-cycle.rs:5:16 --> $DIR/inference-cycle.rs:5:20
| |
LL | type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/inference-cycle.rs:15:9 --> $DIR/inference-cycle.rs:15:9