Skip to content

Commit 0fb32a9

Browse files
committed
Auto merge of #51400 - xfix:patch-6, r=kennytm
Increase number of usages of `u8` in weird expressions u8 test
2 parents 40f20b5 + b7fcf8f commit 0fb32a9

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

src/test/run-pass/weird-exprs.rs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,26 @@ fn dots() {
8484
.. .. .. .. .. .. .. .. .. .. .. ..));
8585
}
8686

87-
fn you_eight() {
88-
assert_eq!(8, {
89-
macro_rules! u8 {
90-
(u8) => {
91-
mod u8 {
92-
pub fn u8<'u8>(u8: &'u8 u8) -> &'u8 u8 {
93-
"u8";
94-
u8
87+
fn u8(u8: u8) {
88+
if u8 != 0u8 {
89+
assert_eq!(8u8, {
90+
macro_rules! u8 {
91+
(u8) => {
92+
mod u8 {
93+
pub fn u8<'u8: 'u8 + 'u8>(u8: &'u8 u8) -> &'u8 u8 {
94+
"u8";
95+
u8
96+
}
9597
}
96-
}
97-
};
98-
}
98+
};
99+
}
99100

100-
u8!(u8);
101-
let &u8: &u8 = u8::u8(&8u8);
102-
u8
103-
});
101+
u8!(u8);
102+
let &u8: &u8 = u8::u8(&8u8);
103+
::u8(0u8);
104+
u8
105+
});
106+
}
104107
}
105108

106109
fn fishy() {
@@ -128,7 +131,7 @@ pub fn main() {
128131
angrydome();
129132
evil_lincoln();
130133
dots();
131-
you_eight();
134+
u8(8u8);
132135
fishy();
133136
union();
134137
special_characters();

0 commit comments

Comments
 (0)