rust/tests/ui/parser/diff-markers/trait-item.rs

15 lines
170 B
Rust

trait T {
<<<<<<< HEAD //~ ERROR encountered diff marker
fn foo() {}
=======
fn bar() {}
>>>>>>> branch
}
struct S;
impl T for S {}
fn main() {
S::foo();
}