blob: 28f8ff7fd1cd91298c7fcb130cd3d426bd68088b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ known-bug: #136175
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
trait Trait {}
struct A<T>(T)
where
[(); std::mem::offset_of!((T,), 0)]:;
fn main() {
let x: A<dyn Trait>;
}
|