2022-11-12 16:27:18 -06:00
|
|
|
#![feature(dyn_star)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn dyn_debug(_: (dyn* Debug + '_)) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fn polymorphic<T: Debug + ?Sized>(t: &T) {
|
|
|
|
dyn_debug(t);
|
2023-02-07 12:02:20 -06:00
|
|
|
//~^ ERROR `&T` needs to have the same alignment and size as a pointer
|
2022-11-12 16:27:18 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|