rust/tests/ui/fn/fn-ptr-trait.rs

10 lines
135 B
Rust
Raw Normal View History

2022-07-20 14:32:58 +02:00
#![feature(fn_ptr_trait)]
//@ check-pass
2022-07-20 14:32:58 +02:00
use std::marker::FnPtr;
trait Foo {}
impl<T> Foo for Vec<T> where T: FnPtr {}
fn main() {}