rust/tests/ui/parser/public-instead-of-pub-2.rs

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

8 lines
210 B
Rust
Raw Normal View History

// Checks what happens when `public` is used instead of the correct, `pub`
// Won't give help message for this case
public let x = 1;
//~^ ERROR expected one of `!` or `::`, found keyword `let`
fn main() { }