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