mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
17 lines
201 B
Rust
17 lines
201 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() {}
|