blob: 913c2faacbd61acb08b4542c770c2eda6407e0eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![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 have the same ABI as a pointer
}
fn main() {}
|