2024-02-16 14:02:50 -06:00
|
|
|
//@ revisions: current
|
|
|
|
//@ incremental
|
2023-05-23 12:23:25 -05:00
|
|
|
|
2024-05-04 03:58:31 -05:00
|
|
|
// FIXME(-Znext-solver): This currently results in unstable query results:
|
2023-08-03 07:43:36 -05:00
|
|
|
// `normalizes-to(opaque, opaque)` changes from `Maybe(Ambiguous)` to `Maybe(Overflow)`
|
|
|
|
// once the hidden type of the opaque is already defined to be itself.
|
2024-05-04 03:58:31 -05:00
|
|
|
//@ unused-revision-names: next
|
2023-08-03 07:43:36 -05:00
|
|
|
|
2023-06-27 16:13:50 -05:00
|
|
|
// checks that we don't ICE if there are region inference variables in the environment
|
|
|
|
// when computing `PointerLike` builtin candidates.
|
|
|
|
|
2023-05-23 12:23:25 -05:00
|
|
|
#![feature(dyn_star, pointer_like_trait)]
|
2023-06-27 16:13:50 -05:00
|
|
|
#![allow(incomplete_features)]
|
2023-05-23 12:23:25 -05:00
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
use std::marker::PointerLike;
|
|
|
|
|
|
|
|
fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {
|
2023-07-04 13:49:13 -05:00
|
|
|
//[next]~^ ERROR cycle detected when computing
|
2023-05-23 12:23:25 -05:00
|
|
|
t as _
|
2023-05-22 18:48:06 -05:00
|
|
|
//[current]~^ ERROR type annotations needed
|
2023-05-23 12:23:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|