summary refs log tree commit diff
path: root/tests/ui/traits/trait-impl-missing-method.rs
blob: 1f03a332c4a2c4744be695e7a4699622e4208d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Trait impls must define all required methods.

trait MyTrait {
    fn trait_method(&self);
}

struct ImplType;

impl MyTrait for ImplType {} //~ ERROR not all trait items implemented, missing: `trait_method`

fn main() {
    let _ = ImplType;
}