diff options
Diffstat (limited to 'tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs')
-rw-r--r-- | tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs b/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs new file mode 100644 index 000000000..c9a097d36 --- /dev/null +++ b/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs @@ -0,0 +1,7 @@ +#![allow(bare_trait_objects)] + +fn main() { + let _: &Copy + 'static; //~ ERROR expected a path + //~^ ERROR cannot be made into an object + let _: &'static Copy + 'static; //~ ERROR expected a path +} |