fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: expected one of `!` or `::`, found `}` 2 --> $DIR/issue-40006.rs:3:1 3 | 4LL | impl dyn A { 5 | - while parsing this item list starting here 6LL | Y 7 | - expected one of `!` or `::` 8LL | } 9 | ^ 10 | | 11 | unexpected token 12 | the item list ends here 13 14error: expected one of `!` or `::`, found `(` 15 --> $DIR/issue-40006.rs:8:6 16 | 17LL | trait X { 18 | - while parsing this item list starting here 19LL | X() {} 20 | ^ expected one of `!` or `::` 21... 22LL | } 23 | - the item list ends here 24 25error: expected one of `!` or `::`, found `(` 26 --> $DIR/issue-40006.rs:16:6 27 | 28LL | trait A { 29 | - while parsing this item list starting here 30LL | X() {} 31 | ^ expected one of `!` or `::` 32LL | } 33 | - the item list ends here 34 35error: expected one of `!` or `[`, found `#` 36 --> $DIR/issue-40006.rs:19:17 37 | 38LL | fn xxx() { ### } 39 | ^ expected one of `!` or `[` 40 41error: expected one of `!` or `::`, found `=` 42 --> $DIR/issue-40006.rs:22:7 43 | 44LL | trait C { 45 | - while parsing this item list starting here 46LL | L = M; 47 | ^ expected one of `!` or `::` 48LL | } 49 | - the item list ends here 50 51error: expected one of `!` or `::`, found `=` 52 --> $DIR/issue-40006.rs:25:7 53 | 54LL | trait D { 55 | - while parsing this item list starting here 56LL | Z = { 2 + 3 }; 57 | ^ expected one of `!` or `::` 58LL | } 59 | - the item list ends here 60 61error: expected one of `!` or `::`, found `(` 62 --> $DIR/issue-40006.rs:28:9 63 | 64LL | trait E { 65 | - while parsing this item list starting here 66LL | ::Y (); 67 | ^ expected one of `!` or `::` 68LL | } 69 | - the item list ends here 70 71error: missing `fn` for method definition 72 --> $DIR/issue-40006.rs:32:8 73 | 74LL | impl S { 75 | - while parsing this item list starting here 76LL | pub hello_method(&self) { 77 | ^ 78... 79LL | } 80 | - the item list ends here 81 | 82help: add `fn` here to parse `hello_method` as a public method 83 | 84LL | pub fn hello_method(&self) { 85 | ^^ 86 87error[E0599]: no method named `hello_method` found for struct `S` in the current scope 88 --> $DIR/issue-40006.rs:38:7 89 | 90LL | struct S; 91 | --------- method `hello_method` not found for this 92... 93LL | S.hello_method(); 94 | ^^^^^^^^^^^^ method not found in `S` 95 96error: aborting due to 9 previous errors 97 98For more information about this error, try `rustc --explain E0599`.