rust/tests/ui/feature-gates/feature-gate-precise_capturing_in_traits.rs
2024-10-10 11:44:11 -07:00

7 lines
164 B
Rust

trait Foo {
fn test() -> impl Sized + use<Self>;
//~^ ERROR `use<...>` precise capturing syntax is currently not allowed in return-position
}
fn main() {}