diff options
Diffstat (limited to 'tests/ui/traits/bound/on-structs-and-enums-xc1.rs')
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc1.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/traits/bound/on-structs-and-enums-xc1.rs b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs new file mode 100644 index 000000000..5ef35b513 --- /dev/null +++ b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs @@ -0,0 +1,15 @@ +// aux-build:on_structs_and_enums_xc.rs + +extern crate on_structs_and_enums_xc; + +use on_structs_and_enums_xc::{Bar, Foo, Trait}; + +fn main() { + let foo = Foo { + x: 3 + //~^ ERROR E0277 + }; + let bar: Bar<f64> = return; + //~^ ERROR E0277 + let _ = bar; +} |