]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs
Rename PointerSized to PointerLike
[rust.git] / tests / ui / dyn-star / check-size-at-cast-polymorphic-bad.rs
1 #![feature(dyn_star)]
2 #![allow(incomplete_features)]
3
4 use std::fmt::Debug;
5
6 fn dyn_debug(_: (dyn* Debug + '_)) {
7
8 }
9
10 fn polymorphic<T: Debug + ?Sized>(t: &T) {
11     dyn_debug(t);
12     //~^ ERROR `&T` needs to have the same alignment and size as a pointer
13 }
14
15 fn main() {}