diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs b/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs new file mode 100644 index 000000000..e6ab2c790 --- /dev/null +++ b/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs @@ -0,0 +1,7 @@ +// Test a supertrait cycle where a trait extends itself. + +trait Chromosome: Chromosome { + //~^ ERROR cycle detected +} + +fn main() { } |