rust/tests/ui/impl-trait/in-bindings/bad-nesting.rs

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

11 lines
180 B
Rust
Raw Normal View History

2024-12-11 22:18:39 +00:00
#![feature(impl_trait_in_bindings)]
trait Foo<T> {}
impl Foo<()> for () {}
fn main() {
let x: impl Foo<impl Sized> = ();
//~^ ERROR nested `impl Trait` is not allowed
}