about summary refs log tree commit diff
path: root/tests/ui/layout/issue-unsized-tail-restatic-ice-122488.rs
blob: 92295704615f2b9b1a4b2e0bb352350b2cd68d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
// ICE Unexpected unsized type tail: &ReStatic [u8]
// issue: rust-lang/rust#122488
use std::ops::Deref;

struct ArenaSet<U: Deref, V: ?Sized = <U as Deref>::Target>(V, U);
//~^ ERROR the size for values of type `V` cannot be known at compilation time

const DATA: *const ArenaSet<Vec<u8>> = std::ptr::null_mut();
//~^ ERROR the type `ArenaSet<Vec<u8>, [u8]>` has an unknown layout

pub fn main() {}