rust/tests/ui/fn/fn-ptr-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
135 B
Rust
Raw Normal View History

2022-07-20 12:32:58 +00:00
#![feature(fn_ptr_trait)]
//@ check-pass
use std::marker::FnPtr;
trait Foo {}
impl<T> Foo for Vec<T> where T: FnPtr {}
fn main() {}