]>
Commit | Line | Data |
---|---|---|
487cf647 FG |
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); | |
9ffffee4 | 12 | //~^ ERROR `&T` needs to have the same alignment and size as a pointer |
487cf647 FG |
13 | } |
14 | ||
15 | fn main() {} |