mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
17 lines
415 B
Rust
17 lines
415 B
Rust
#![feature(rustc_attrs)]
|
|
#![allow(internal_features)]
|
|
#![rustc_variance_of_opaques]
|
|
|
|
trait Captures<'a> {}
|
|
impl<T> Captures<'_> for T {}
|
|
|
|
fn not_captured_early<'a: 'a>() -> impl Sized {} //~ [*]
|
|
|
|
fn captured_early<'a: 'a>() -> impl Sized + Captures<'a> {} //~ [*, o]
|
|
|
|
fn not_captured_late<'a>(_: &'a ()) -> impl Sized {} //~ []
|
|
|
|
fn captured_late<'a>(_: &'a ()) -> impl Sized + Captures<'a> {} //~ [o]
|
|
|
|
fn main() {}
|