You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2024. It is now read-only.
=== stdout ===
=== stderr ===
error[E0152]: found duplicate lang item `fn`
--> /home/runner/work/glacier/glacier/ices/83471-2.rs:6:1
|
6 | / trait MyFn<T> {
7 | | const call: i32 = 42;
8 | | //~^ ERROR: `call` trait item in `fn`/`fn_mut` lang item must be a function
9 | | }
| |_^
|
= note: the lang item is first defined in crate `core` (which `std` depends on)
= note: first definition in `core` loaded from /usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0e3656b1fda5fd7b.rlib
= note: second definition in the local crate (`83471_2`)
error[E0152]: found duplicate lang item `fn_mut`
--> /home/runner/work/glacier/glacier/ices/83471-2.rs:12:1
|
12 | / trait MyFnMut<T> {
13 | | fn call(i: i32, j: i32) -> i32 { i + j }
14 | | //~^ ERROR: first argument of `call` in `fn`/`fn_mut` lang item must be a reference
15 | | }
| |_^
|
= note: the lang item is first defined in crate `core` (which `std` depends on)
= note: first definition in `core` loaded from /usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0e3656b1fda5fd7b.rlib
= note: second definition in the local crate (`83471_2`)
error: `call` trait item in `fn` lang item must be a function
--> /home/runner/work/glacier/glacier/ices/83471-2.rs:7:5
|
7 | const call: i32 = 42;
| ^^^^^^^^^^^^^^^^^^^^^
error: first argument of `call` in `fn_mut` lang item must be a reference
--> /home/runner/work/glacier/glacier/ices/83471-2.rs:13:16
|
13 | fn call(i: i32, j: i32) -> i32 { i + j }
| ^^^
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0152`.
==============
0 commit comments