fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
339 B13 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   |    ^^^
6   |
7help: add `fn` here to parse `bar` as a public method
8   |
9LL | pub fn bar<'a>(&self, _s: &'a usize) -> bool { true }
10   |     ^^
11
12error: aborting due to previous error
13