]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-3556.rs
7 ETag(Vec
<String
>, String
),
8 UTag(Vec
<String
>, String
),
9 Section(Vec
<String
>, bool
, Vec
<Token
>, String
,
10 String
, String
, String
, String
),
11 IncompleteSection(Vec
<String
>, bool
, String
, bool
),
12 Partial(String
, String
, String
),
15 fn check_strs(actual
: &str, expected
: &str) -> bool
19 println
!("Found {}, but expected {}", actual
, expected
);
27 let t
= Token
::Text("foo".to_string());
28 let u
= Token
::Section(vec
!["alpha".to_string()],
32 "foo".to_string(), "foo".to_string(), "foo".to_string(),
34 let v
= format
!("{:?}", u
); // this is the line that causes the seg fault
35 assert
!(!v
.is_empty());