rust/tests/ui/associated-type-bounds/return-type-notation/non-rpitit.rs

12 lines
286 B
Rust

#![feature(return_type_notation)]
//~^ WARN the feature `return_type_notation` is incomplete
trait Trait {
fn method() {}
}
fn test<T: Trait<method(): Send>>() {}
//~^ ERROR return type notation used on function that is not `async` and does not return `impl Trait`
fn main() {}