2023-05-12 00:58:02 +00:00
|
|
|
//@ revisions: current next
|
2024-03-11 01:18:41 +00:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 12:11:28 +00:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-05-12 00:58:02 +00:00
|
|
|
|
2022-11-12 22:27:18 +00:00
|
|
|
#![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);
|
2023-03-20 20:53:43 +00:00
|
|
|
//~^ ERROR `&T` needs to have the same ABI as a pointer
|
2022-11-12 22:27:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|