rust/tests/ui/dyn-star/check-size-at-cast-polymorphic.rs
2023-01-11 09:32:08 +00:00

17 lines
200 B
Rust

// check-pass
#![feature(dyn_star)]
#![allow(incomplete_features)]
use std::fmt::Debug;
fn dyn_debug(_: (dyn* Debug + '_)) {
}
fn polymorphic<T: Debug>(t: &T) {
dyn_debug(t);
}
fn main() {}