mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
305 B
Rust
14 lines
305 B
Rust
// Tests to make sure that we reject polymorphic fn ptrs.
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
fn foo() -> for<T> fn(T) {
|
|
//~^ ERROR late-bound type parameter not allowed on function pointer types
|
|
todo!()
|
|
}
|
|
|
|
fn main() {
|
|
foo()(1i32);
|
|
}
|