mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
366 B
Rust
14 lines
366 B
Rust
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() {}
|