about summary refs log tree commit diff
path: root/tests/ui/fn/fn-ptr-trait.rs
blob: 3edde574c2660bb0533017e048c68a3e414d4268 (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() {}