mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
247 B
Rust
16 lines
247 B
Rust
#![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);
|
|
//~^ ERROR `&T` needs to be a pointer-sized type
|
|
}
|
|
|
|
fn main() {}
|