rust/tests/ui/lifetimes/fullwidth-ampersand.rs
2023-01-11 09:32:08 +00:00

8 lines
211 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Verify that we do not ICE when the user uses a multubyte ampersand.
fn f(_: &()) -> &() { todo!() }
//~^ ERROR unknown start of token: \u{ff06}
//~| ERROR missing lifetime specifier [E0106]
fn main() {}