Files
rust/tests/ui/traits/next-solver/opaques/overflow-hr-fn-trait-sized-2.rs

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

15 lines
325 B
Rust
Raw Normal View History

2025-09-29 13:57:41 +02:00
//@ ignore-compare-mode-next-solver
//@ compile-flags: -Znext-solver
//@ check-pass
// Regression test for trait-system-refactor-initiative#204, see
// the sibling test for more details.
fn constrain<'a, F: FnOnce(&'a ())>(_: F) {}
fn foo<'a>(_: &'a ()) -> impl Sized + use<'a> {
constrain(foo);
()
}
fn main() {}