]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/ascription/issue-60933.stderr
Rollup merge of #69677 - petrochenkov:spancode, r=eddyb
[rust.git] / src / test / ui / type / ascription / issue-60933.stderr
1 error: casts cannot be followed by a function call
2   --> $DIR/issue-60933.rs:2:20
3    |
4 LL |     let u: usize = std::mem:size_of::<u32>();
5    |                    ^^^^^^^^-^^^^^^^^^^^^^^
6    |                            |
7    |                            help: maybe write a path separator here: `::`
8    |
9    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
10    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
11
12 error[E0423]: expected value, found module `std::mem`
13   --> $DIR/issue-60933.rs:2:20
14    |
15 LL |     let u: usize = std::mem:size_of::<u32>();
16    |                    ^^^^^^^^- help: maybe you meant to write a path separator here: `::`
17    |                    |
18    |                    not a value
19
20 error[E0412]: cannot find type `size_of` in this scope
21   --> $DIR/issue-60933.rs:2:29
22    |
23 LL |     let u: usize = std::mem:size_of::<u32>();
24    |                            -^^^^^^^ not found in this scope
25    |                            |
26    |                            help: maybe you meant to write a path separator here: `::`
27
28 error: aborting due to 3 previous errors
29
30 Some errors have detailed explanations: E0412, E0423.
31 For more information about an error, try `rustc --explain E0412`.