about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/ice-unsized-struct-arg-issue2-121424.rs
blob: 1a9266e05def3ddad4f8788d330e57d2d3aa4de4 (plain)
1
2
3
4
5
6
7
8
9
// Regression test for issue #121424
#[repr(C)]
struct MySlice<T: Copy>(bool, T);
type MySliceBool = MySlice<[bool]>;
const MYSLICE_GOOD: &MySliceBool = &MySlice(true, [false]);
//~^ ERROR the trait bound `[bool]: Copy` is not satisfied
//~| ERROR the trait bound `[bool]: Copy` is not satisfied

fn main() {}