rust/tests/ui/impl-trait/in-bindings/simple.rs

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

11 lines
126 B
Rust
Raw Normal View History

2024-12-11 22:18:39 +00:00
//@ check-pass
#![feature(impl_trait_in_bindings)]
trait Foo {}
impl Foo for () {}
fn main() {
let x: impl Foo = ();
}