Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
trait-impl-missing-method.rs
blob: 1f03a332c4a2c4744be695e7a4699622e4208d3b [
file
] [
log
] [
blame
]
//! 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
;
}