]> git.proxmox.com Git - rustc.git/blame - tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / dyn-star / check-size-at-cast-polymorphic-bad.rs
CommitLineData
487cf647
FG
1#![feature(dyn_star)]
2#![allow(incomplete_features)]
3
4use std::fmt::Debug;
5
6fn dyn_debug(_: (dyn* Debug + '_)) {
7
8}
9
10fn polymorphic<T: Debug + ?Sized>(t: &T) {
11 dyn_debug(t);
9ffffee4 12 //~^ ERROR `&T` needs to have the same alignment and size as a pointer
487cf647
FG
13}
14
15fn main() {}