]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-duplicate-methods.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / impl-duplicate-methods.rs
1 struct Foo;
2
3 impl Foo {
4     fn orange(&self) {}
5     fn orange(&self) {}
6     //~^ ERROR duplicate definition
7 }
8
9 fn main() {}