2 #![allow(unused_variables)]
3 use std
::marker
::PhantomData
;
6 struct Symbol
<'a
, F
: Fn(Vec
<&'a
str>) -> &'a
str> { function: F, marker: PhantomData<&'a ()> }
7 let f
= |x
: Vec
<&str>| -> &str { "foobar" }
;
8 let sym
= Symbol { function: f, marker: PhantomData }
;
9 (sym
.function
)(vec
![]);