rustc/tests/ui/fn/fn-ptr-trait.rs
2023-09-14 08:56:40 +02:00

10 lines
134 B
Rust

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