]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/issue-91268.stderr
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / ui / type / issue-91268.stderr
1 error: this file contains an unclosed delimiter
2   --> $DIR/issue-91268.rs:9:12
3    |
4 LL | fn main() {
5    |           - unclosed delimiter
6 LL |     0: u8(ţ
7    |          - ^
8    |          |
9    |          unclosed delimiter
10
11 error: this file contains an unclosed delimiter
12   --> $DIR/issue-91268.rs:9:12
13    |
14 LL | fn main() {
15    |           - unclosed delimiter
16 LL |     0: u8(ţ
17    |          - ^
18    |          |
19    |          unclosed delimiter
20
21 error[E0412]: cannot find type `ţ` in this scope
22   --> $DIR/issue-91268.rs:9:11
23    |
24 LL |     0: u8(ţ
25    |           ^ expecting a type here because of type ascription
26
27 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
28   --> $DIR/issue-91268.rs:9:8
29    |
30 LL |     0: u8(ţ
31    |        ^^^^ only `Fn` traits may use parentheses
32    |
33 help: use angle brackets instead
34    |
35 LL |     0: u8<ţ>
36    |          ~ +
37
38 error[E0109]: type arguments are not allowed on builtin type `u8`
39   --> $DIR/issue-91268.rs:9:11
40    |
41 LL |     0: u8(ţ
42    |        -- ^ type argument not allowed
43    |        |
44    |        not allowed on builtin type `u8`
45    |
46 help: primitive type `u8` doesn't have generic parameters
47    |
48 LL -     0: u8(ţ
49 LL +     0: u8
50    |
51
52 error[E0308]: mismatched types
53   --> $DIR/issue-91268.rs:9:5
54    |
55 LL | fn main() {
56    |           - expected `()` because of default return type
57 LL |     0: u8(ţ
58    |     ^^^^^^^ expected `()`, found `u8`
59
60 error: aborting due to 6 previous errors
61
62 Some errors have detailed explanations: E0109, E0214, E0308, E0412.
63 For more information about an error, try `rustc --explain E0109`.