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
r###"error: expected assignment or increment/decrement, found ';'
1800
+
r###"error: expected assignment or increment/decrement, found ";"
1801
1801
┌─ wgsl:3:18
1802
1802
│
1803
1803
3 │ 3 + 5;
@@ -2432,3 +2432,17 @@ fn const_assert_failed() {
2432
2432
"###,
2433
2433
);
2434
2434
}
2435
+
2436
+
#[test]
2437
+
fnreject_utf8_bom(){
2438
+
check(
2439
+
"\u{FEFF}fn main() {}",
2440
+
r#"error: expected global item ('struct', 'const', 'var', 'alias', 'fn', 'diagnostic', 'enable', 'requires', ';') or the end of the file, found "\u{feff}"
2441
+
┌─ wgsl:1:1
2442
+
│
2443
+
1 │ fn main() {}
2444
+
│ expected global item ('struct', 'const', 'var', 'alias', 'fn', 'diagnostic', 'enable', 'requires', ';') or the end of the file
0 commit comments