rust/tests/ui/lifetimes/fullwidth-ampersand.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
211 B
Rust
Raw Normal View History

// 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() {}