summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/fn-ptr-trait.rs
blob: 45918ae5b6104fe4412156e3efb568385754a99c (plain)
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() {}