Skip to content

Commit 65f9603

Browse files
committed
Add more interesting nonsense to weird-exprs.rs
1 parent 276fa29 commit 65f9603

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/ui/weird-exprs.rs

+30
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55

66
#![allow(non_camel_case_types)]
77
#![allow(dead_code)]
8+
#![allow(redundant_semicolons)]
89
#![allow(unreachable_code)]
910
#![allow(unused_braces, unused_must_use, unused_parens)]
1011
#![allow(uncommon_codepoints, confusable_idents)]
12+
#![allow(unused_imports)]
1113
#![allow(unreachable_patterns)]
1214

1315
#![recursion_limit = "256"]
1416

17+
extern crate core;
1518
use std::cell::Cell;
1619
use std::mem::swap;
1720

@@ -204,6 +207,30 @@ fn closure_matching() {
204207
assert!(matches!(x(..), |_| Some(4)));
205208
}
206209

210+
fn semisemisemisemisemi() {
211+
;;;;;;; ;;;;;;; ;;; ;;; ;;
212+
;; ;; ;;;; ;;;; ;;
213+
;;;;;;; ;;;;; ;; ;;;; ;; ;;
214+
;; ;; ;; ;; ;; ;;
215+
;;;;;;; ;;;;;;; ;; ;; ;;
216+
}
217+
218+
fn useful_syntax() {
219+
use {{std::{{collections::{{HashMap}}}}}};
220+
use ::{{{{core}, {std}}}};
221+
use {{::{{core as core2}}}};
222+
}
223+
224+
fn infcx() {
225+
pub mod cx {
226+
pub mod cx {
227+
pub use super::cx;
228+
pub struct Cx;
229+
}
230+
}
231+
let _cx: cx::cx::Cx = cx::cx::cx::cx::cx::Cx;
232+
}
233+
207234
pub fn main() {
208235
strange();
209236
funny();
@@ -227,4 +254,7 @@ pub fn main() {
227254
function();
228255
bathroom_stall();
229256
closure_matching();
257+
semisemisemisemisemi();
258+
useful_syntax();
259+
infcx();
230260
}

0 commit comments

Comments
 (0)