fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
334 B12 linesraw
1error: missing `fn` for method definition
2  --> $DIR/pub-ident-fn-with-lifetime-2.rs:1:4
3   |
4LL | pub   bar<'a>(&self, _s: &'a usize) -> bool { true }
5   |    ^^^
6help: add `fn` here to parse `bar` as a public method
7   |
8LL | pub fn bar<'a>(&self, _s: &'a usize) -> bool { true }
9   |     ^^
10
11error: aborting due to previous error
12