]> git.proxmox.com Git - rustc.git/blob - tests/ui/traits/non_lifetime_binders/on-ptr.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / traits / non_lifetime_binders / on-ptr.stderr
1 warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/on-ptr.rs:3:12
3 |
4 LL | #![feature(non_lifetime_binders)]
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8 = note: `#[warn(incomplete_features)]` on by default
9
10 error: late-bound type parameter not allowed on function pointer types
11 --> $DIR/on-ptr.rs:6:17
12 |
13 LL | fn foo() -> for<T> fn(T) {
14 | ^
15
16 error: aborting due to previous error; 1 warning emitted
17