You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Suboptimal warning/error/suggestion[/-][+]Bad interaction between missing semicolon in fully qualified fn path and type ascription[/+]on Apr 30, 2019
error: expected one of `!`, `,`, or `::`, found `(`
--> file8.rs:3:58
|
3 | println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>());
| - ^ expected one of `!`, `,`, or `::` here
| |
| help: maybe write a path separator here: `::`
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
= note: for more information, see https://github.com/rust-lang/rust/issues/23416
Activity
estebank commentedon Dec 13, 2018
CC #47666
estebank commentedon Mar 13, 2019
After #59150, if you add a comma where it asks for one the output is slightly better:
Rollup merge of rust-lang#59150 - estebank:type-ascription, r=varkor
Rollup merge of rust-lang#59150 - estebank:type-ascription, r=varkor
Rollup merge of rust-lang#59150 - estebank:type-ascription, r=varkor
[-]Suboptimal warning/error/suggestion[/-][+]Bad interaction between missing semicolon in fully qualified fn path and type ascription[/+]Rollup merge of rust-lang#62791 - estebank:type-ascription, r=petroch…
Rollup merge of rust-lang#62791 - estebank:type-ascription, r=petroch…
estebank commentedon Oct 20, 2019
Current output: