mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 20:00:43 +00:00
19 lines
320 B
Rust
19 lines
320 B
Rust
// revisions: current next
|
|
//[next] compile-flags: -Znext-solver
|
|
|
|
#![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() {}
|