Files
rust/tests/ui/traits/next-solver/opaques/universal-args-non-defining.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
402 B
Rust
Raw Normal View History

//@ check-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
// The recursive call to `foo` results in the opaque type use `opaque<U, T> = ?unconstrained`.
// This needs to be supported and treated as a revealing use.
fn foo<T, U>(b: bool) -> impl Sized {
if b {
foo::<U, T>(b);
}
1u16
}
fn main() {}