mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
14 lines
318 B
Rust
14 lines
318 B
Rust
// Tests to make sure that we reject polymorphic dyn trait.
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
trait Test<T> {}
|
|
|
|
fn foo() -> &'static dyn for<T> Test<T> {
|
|
//~^ ERROR late-bound type parameter not allowed on trait object types
|
|
todo!()
|
|
}
|
|
|
|
fn main() {}
|