mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
14 lines
305 B
Rust
14 lines
305 B
Rust
trait Deserialize {
|
|
fn deserialize(&self);
|
|
}
|
|
|
|
struct ArchivedVec<T>(T);
|
|
|
|
impl<T> Deserialize for ArchivedVec<T> {
|
|
fn deserialize(s: _) {}
|
|
//~^ ERROR: `_` is not allowed within types on item signatures
|
|
//~| ERROR: has a `&self` declaration in the trait, but not in the impl
|
|
}
|
|
|
|
fn main() {}
|