mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
12 lines
265 B
Rust
12 lines
265 B
Rust
// build-pass
|
|
// compile-flags: --crate-type=lib
|
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
|
// revisions: current next
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Foo {
|
|
fn bar() -> impl Sized;
|
|
}
|