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