rust/tests/ui/traits/non_lifetime_binders/binder-defaults-112547.rs

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

17 lines
336 B
Rust
Raw Normal View History

#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete
pub fn bar()
where
for<const N: usize = {
(||1usize)()
}> V: IntoIterator
//~^^^ ERROR defaults for generic parameters are not allowed in `for<...>` binders
//~^^ ERROR cannot find type `V` in this scope
{
}
fn main() {
bar();
}