Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
14
tests/ui/recursion/recursive-enum.stderr
Normal file
14
tests/ui/recursion/recursive-enum.stderr
Normal file
|
@ -0,0 +1,14 @@
|
|||
error[E0072]: recursive type `List` has infinite size
|
||||
--> $DIR/recursive-enum.rs:1:1
|
||||
|
|
||||
LL | enum List<T> { Cons(T, List<T>), Nil }
|
||||
| ^^^^^^^^^^^^ ------- recursive without indirection
|
||||
|
|
||||
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
|
||||
|
|
||||
LL | enum List<T> { Cons(T, Box<List<T>>), Nil }
|
||||
| ++++ +
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0072`.
|
Loading…
Add table
Add a link
Reference in a new issue