Skip to content

Commit

Permalink
miri: adjust layout cycle test to avoid overflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed Mar 19, 2024
1 parent e399970 commit 81a8fae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/miri/tests/fail/layout_cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::mem;

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

pub trait Tr {
Expand Down

0 comments on commit 81a8fae

Please sign in to comment.