blob: 0aaff52b6d8cda6eb4af0905844401c848da21b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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);
}
|