rust/tests/ui/fn/fn-ptr-trait.rs
2023-03-27 12:16:54 +00:00

10 lines
134 B
Rust

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