fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`, found keyword `pub` 2 --> $DIR/default.rs:22:13 3 | 4LL | default pub fn foo<T: Default>() -> T { T::default() } 5 | ^^^ expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe` 6 7error[E0449]: unnecessary visibility qualifier 8 --> $DIR/default.rs:16:5 9 | 10LL | pub default fn foo<T: Default>() -> T { 11 | ^^^ `pub` not permitted here because it's implied 12 13error[E0046]: not all trait items implemented, missing: `foo` 14 --> $DIR/default.rs:21:1 15 | 16LL | fn foo<T: Default>() -> T; 17 | -------------------------- `foo` from trait 18... 19LL | impl Foo for u32 { 20 | ^^^^^^^^^^^^^^^^ missing `foo` in implementation 21 22error: aborting due to 3 previous errors 23 24Some errors have detailed explanations: E0046, E0449. 25For more information about an error, try `rustc --explain E0046`.