summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr')
-rw-r--r--src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr39
1 files changed, 39 insertions, 0 deletions
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
new file mode 100644
index 000000000..d4976a0f9
--- /dev/null
+++ b/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
@@ -0,0 +1,39 @@
+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 | |
+LL | | fn main() { }
+ | |_____________^
+
+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 | |
+LL | | fn main() { }
+ | |_____________^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0391`.