|
| 1 | +error: `self` parameter is only allowed in associated functions |
| 2 | + --> $DIR/issue-102989.rs:10:15 |
| 3 | + | |
| 4 | +LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 { |
| 5 | + | ^^^^ not semantically valid as function parameter |
| 6 | + | |
| 7 | + = note: associated functions are those in `impl` or `trait` definitions |
| 8 | + |
| 9 | +error[E0412]: cannot find type `Struct` in this scope |
| 10 | + --> $DIR/issue-102989.rs:10:22 |
| 11 | + | |
| 12 | +LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 { |
| 13 | + | ^^^^^^ not found in this scope |
| 14 | + |
| 15 | +error[E0425]: cannot find value `x` in this scope |
| 16 | + --> $DIR/issue-102989.rs:14:13 |
| 17 | + | |
| 18 | +LL | let x = x << 1; |
| 19 | + | ^ help: a local variable with a similar name exists: `f` |
| 20 | + |
| 21 | +error: `profiler_builtins` crate (required by compiler options) is not compatible with crate attribute `#![no_core]` |
| 22 | + |
| 23 | +error[E0463]: can't find crate for `profiler_builtins` |
| 24 | + | |
| 25 | + = note: the compiler may have been built without the profiler runtime |
| 26 | + |
| 27 | +error[E0152]: found duplicate lang item `sized` |
| 28 | + --> $DIR/issue-102989.rs:8:1 |
| 29 | + | |
| 30 | +LL | trait Sized { } |
| 31 | + | ^^^^^^^^^^^ |
| 32 | + | |
| 33 | + = note: the lang item is first defined in crate `core`. |
| 34 | + = note: first definition in `core` loaded from SYSROOT/libcore-*.rlib |
| 35 | + = note: second definition in the local crate (`issue_102989`) |
| 36 | + |
| 37 | +error: `#[panic_handler]` function required, but not found |
| 38 | + |
| 39 | +error: language item required, but not found: `eh_personality` |
| 40 | + | |
| 41 | + = note: this can occur when a binary crate with `#![no_std]` is compiled for a target where `eh_personality` is defined in the standard library |
| 42 | + = help: you may be able to compile for a target that doesn't need `eh_personality`, specify a target with `--target` or in `.cargo/config` |
| 43 | + |
| 44 | +error[E0277]: the size for values of type `{integer}` cannot be known at compilation time |
| 45 | + --> $DIR/issue-102989.rs:14:15 |
| 46 | + | |
| 47 | +LL | let x = x << 1; |
| 48 | + | ^^ doesn't have a size known at compile-time |
| 49 | + | |
| 50 | + = help: the trait `core::marker::Sized` is not implemented for `{integer}` |
| 51 | + |
| 52 | +error[E0308]: mismatched types |
| 53 | + --> $DIR/issue-102989.rs:10:42 |
| 54 | + | |
| 55 | +LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 { |
| 56 | + | ---------- ^^^^ expected `&u32`, found `()` |
| 57 | + | | |
| 58 | + | implicitly returns `()` as its body has no tail or `return` expression |
| 59 | + | |
| 60 | +note: consider returning one of these bindings |
| 61 | + --> $DIR/issue-102989.rs:10:30 |
| 62 | + | |
| 63 | +LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 { |
| 64 | + | ^ |
| 65 | +... |
| 66 | +LL | let x = x << 1; |
| 67 | + | ^ |
| 68 | + |
| 69 | +error: aborting due to 10 previous errors |
| 70 | + |
| 71 | +Some errors have detailed explanations: E0152, E0277, E0308, E0412, E0425, E0463. |
| 72 | +For more information about an error, try `rustc --explain E0152`. |
0 commit comments