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

10 lines
134 B
Rust
Raw Normal View History

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