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