1 2 3 4 5 6 7 8 9
#![feature(fn_ptr_trait)] // check-pass use std::marker::FnPtr; trait Foo {} impl<T> Foo for Vec<T> where T: FnPtr {} fn main() {}