mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
9 lines
222 B
Rust
9 lines
222 B
Rust
#![feature(precise_capturing)]
|
|
|
|
trait Foo {
|
|
fn bar<'a>() -> impl Sized + use<Self>;
|
|
//~^ ERROR `use<...>` precise capturing syntax is currently not allowed in return-position `impl Trait` in traits
|
|
}
|
|
|
|
fn main() {}
|