diff options
| author | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-05 09:13:28 +0100 |
|---|---|---|
| committer | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-11 09:32:08 +0000 |
| commit | cf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch) | |
| tree | 40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/ui/cycle-trait | |
| parent | ca855e6e42787ecd062d81d53336fe6788ef51a9 (diff) | |
| download | rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip | |
Move /src/test to /tests
Diffstat (limited to 'src/test/ui/cycle-trait')
6 files changed, 0 insertions, 102 deletions
diff --git a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs b/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs deleted file mode 100644 index 6175b7df110..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs +++ /dev/null @@ -1,8 +0,0 @@ -// Test a cycle where a type parameter on a trait has a default that -// again references the trait. - -trait Foo<X = Box<dyn Foo>> { - //~^ ERROR cycle detected -} - -fn main() { } diff --git a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr b/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr deleted file mode 100644 index 9d715f49471..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr +++ /dev/null @@ -1,20 +0,0 @@ -error[E0391]: cycle detected when computing type of `Foo::X` - --> $DIR/cycle-trait-default-type-trait.rs:4:23 - | -LL | trait Foo<X = Box<dyn Foo>> { - | ^^^ - | - = note: ...which immediately requires computing type of `Foo::X` again -note: cycle used when collecting item types in top-level module - --> $DIR/cycle-trait-default-type-trait.rs:4:1 - | -LL | / trait Foo<X = Box<dyn Foo>> { -LL | | -LL | | } -LL | | -LL | | fn main() { } - | |_____________^ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0391`. diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs b/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs deleted file mode 100644 index e6ab2c790d6..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs +++ /dev/null @@ -1,7 +0,0 @@ -// Test a supertrait cycle where a trait extends itself. - -trait Chromosome: Chromosome { - //~^ ERROR cycle detected -} - -fn main() { } diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr b/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr deleted file mode 100644 index f6ffcc4b5aa..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr +++ /dev/null @@ -1,23 +0,0 @@ -error[E0391]: cycle detected when computing the super predicates of `Chromosome` - --> $DIR/cycle-trait-supertrait-direct.rs:3:1 - | -LL | trait Chromosome: Chromosome { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: ...which requires computing the super traits of `Chromosome`... - --> $DIR/cycle-trait-supertrait-direct.rs:3:19 - | -LL | trait Chromosome: Chromosome { - | ^^^^^^^^^^ - = note: ...which again requires computing the super predicates of `Chromosome`, completing the cycle -note: cycle used when collecting item types in top-level module - --> $DIR/cycle-trait-supertrait-direct.rs:3:1 - | -LL | / trait Chromosome: Chromosome { -LL | | -LL | | } - | |_^ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0391`. diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs b/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs deleted file mode 100644 index 9a72b65da88..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Test a supertrait cycle where the first trait we find (`A`) is not -// a direct participant in the cycle. - -trait A: B { -} - -trait B: C { - //~^ ERROR cycle detected -} - -trait C: B { } - -fn main() { } diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr b/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr deleted file mode 100644 index 0a2284e0efb..00000000000 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr +++ /dev/null @@ -1,31 +0,0 @@ -error[E0391]: cycle detected when computing the super predicates of `B` - --> $DIR/cycle-trait-supertrait-indirect.rs:7:1 - | -LL | trait B: C { - | ^^^^^^^^^^ - | -note: ...which requires computing the super traits of `B`... - --> $DIR/cycle-trait-supertrait-indirect.rs:7:10 - | -LL | trait B: C { - | ^ -note: ...which requires computing the super predicates of `C`... - --> $DIR/cycle-trait-supertrait-indirect.rs:11:1 - | -LL | trait C: B { } - | ^^^^^^^^^^ -note: ...which requires computing the super traits of `C`... - --> $DIR/cycle-trait-supertrait-indirect.rs:11:10 - | -LL | trait C: B { } - | ^ - = note: ...which again requires computing the super predicates of `B`, completing the cycle -note: cycle used when computing the super traits of `A` - --> $DIR/cycle-trait-supertrait-indirect.rs:4:10 - | -LL | trait A: B { - | ^ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0391`. |
