blob: 9039dde5e93e2871bb3cbb3c5b992eed8c91da4d [file] [log] [blame]
// revisions: current next
//[next] compile-flags: -Ztrait-solver=next
// incremental
#![feature(dyn_star, pointer_like_trait)]
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
use std::fmt::Debug;
use std::marker::PointerLike;
fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {
t as _
//~^ ERROR type annotations needed
}
fn main() {}