1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
fn main() {
///// Raw string with missing type argument /////
sscanf::sscanf!("hi", r"asdf{}asdf");
//~ ^^^^^^^^^^^^^ more placeholders than types provided:
//~ --> stable/raw_string.rs:2:33
//~ |
//~ 2 | r"asdf{}asdf"
//~ | ^^
///// Raw string with invalid number format /////
sscanf::sscanf!("hi", r"asdf{:bob}asdf", usize);
//~ ^^^^^^^^^^^^^^^^^ multiple number format options are not allowed:
//~ --> stable/raw_string.rs:2:36
//~ |
//~ 2 | r"asdf{:bob}asdf"
//~ | ^
///// Raw string with invalid format option in placeholder /////
sscanf::sscanf!("hi", r"asdf{usize:bob}asdf");
//~ ^^^^^^^^^^^^^^^^^^^^^^ multiple number format options are not allowed:
//~ --> stable/raw_string.rs:2:41
//~ |
//~ 2 | r"asdf{usize:bob}asdf"
//~ | ^
///// Raw string with hashes and missing type argument /////
sscanf::sscanf!("hi", r##"asdf{}asdf"##);
//~ ^^^^^^^^^^^^^^^^^ more placeholders than types provided:
//~ --> stable/raw_string.rs:2:35
//~ |
//~ 2 | r##"asdf{}asdf"##
//~ | ^^
///// Raw string with hashes and invalid number format /////
sscanf::sscanf!("hi", r##"asdf{:bob}asdf"##, usize);
//~ ^^^^^^^^^^^^^^^^^^^^^ multiple number format options are not allowed:
//~ --> stable/raw_string.rs:2:38
//~ |
//~ 2 | r##"asdf{:bob}asdf"##
//~ | ^
///// Raw string with hashes and invalid format option in placeholder /////
sscanf::sscanf!("hi", r##"asdf{usize:bob}asdf"##);
//~ ^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple number format options are not allowed:
//~ --> stable/raw_string.rs:2:43
//~ |
//~ 2 | r##"asdf{usize:bob}asdf"##
//~ | ^
////////////////////////////////////////////////////////////////////////////////
}