diff options
Diffstat (limited to 'tests/ui/error-codes/E0034.rs')
-rw-r--r-- | tests/ui/error-codes/E0034.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0034.rs b/tests/ui/error-codes/E0034.rs new file mode 100644 index 000000000..f962da115 --- /dev/null +++ b/tests/ui/error-codes/E0034.rs @@ -0,0 +1,21 @@ +struct Test; + +trait Trait1 { + fn foo(); +} + +trait Trait2 { + fn foo(); +} + +impl Trait1 for Test { + fn foo() {} +} + +impl Trait2 for Test { + fn foo() {} +} + +fn main() { + Test::foo() //~ ERROR multiple applicable items in scope +} |