mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
21 lines
539 B
Rust
21 lines
539 B
Rust
// revisions: current next
|
|
//[next] compile-flags: -Ztrait-solver=next
|
|
//[next] check-pass
|
|
// incremental
|
|
|
|
// checks that we don't ICE if there are region inference variables in the environment
|
|
// when computing `PointerLike` builtin candidates.
|
|
|
|
#![feature(dyn_star, pointer_like_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
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 _
|
|
//[current]~^ ERROR type annotations needed
|
|
}
|
|
|
|
fn main() {}
|