Skip to content

Commit 81a8fae

Browse files
author
Lukas Markeffsky
committed
miri: adjust layout cycle test to avoid overflow error
1 parent e399970 commit 81a8fae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/miri/tests/fail/layout_cycle.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::mem;
55

66
pub struct S<T: Tr> {
77
pub f: <T as Tr>::I,
8+
_tail: (), // without this, we get an overflow error instead
89
}
910

1011
pub trait Tr {

0 commit comments

Comments
 (0)