blob: 60b80e35a20b892eee29a85ae05d9b067b3f0bb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::marker::PhantomData;
struct Token<T>(PhantomData<T>);
impl<T> Token<T> {
fn new() -> _ {
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types
//~| NOTE not allowed in type signatures
//~| HELP replace with the correct return type
Token(PhantomData::<()>)
}
}
fn main() {}
|