]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-88730.rs
1 #![allow(unused, nonstandard_style)]
2 #![deny(bindings_with_variant_name)]
4 // If an enum has two different variants,
5 // then it cannot be matched upon in a function argument.
6 // It still gets a warning, but no suggestions.
12 fn foo(C
: Foo
) {}
//~ERROR
15 let C
= Foo
::D
; //~ERROR