Skip to content

Commit 18f426e

Browse files
committed
Update compile-fail test with new message that is generated as a
result of using `ty::type_is_sized`
1 parent 55c6a68 commit 18f426e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/compile-fail/recursion.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//~^^^^^^^^^^ ERROR overflow
12+
//
13+
// We also get a second error message at the top of file (dummy
14+
// span). This is not helpful, but also kind of annoying to prevent,
15+
// so for now just live with it, since we also get a second message
16+
// that is more helpful.
17+
1118
enum Nil {NilValue}
1219
struct Cons<T> {head:int, tail:T}
1320
trait Dot {fn dot(&self, other:Self) -> int;}

0 commit comments

Comments
 (0)