rust/tests/ui/traits/non_lifetime_binders/sized-late-bound-issue-114872.rs
2024-02-16 20:02:50 +00:00

20 lines
213 B
Rust

//@ check-pass
#![feature(non_lifetime_binders)]
//~^ WARN is incomplete and may not be safe
pub fn foo()
where
for<V> V: Sized,
{
bar();
}
pub fn bar()
where
for<V> V: Sized,
{
}
pub fn main() {}