Skip to content

Commit 5c80722

Browse files
committed
Zero-constructing texture_2d is no longer caught by front end.
1 parent 7bf2eb8 commit 5c80722

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

naga/tests/naga/wgsl_errors.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,22 +2306,6 @@ fn invalid_zero_value_constructors() {
23062306
4 │ let x = array<u32, len>();
23072307
│ ^^^^^^^^^^^^^^^ type is not constructible
23082308
2309-
"#,
2310-
);
2311-
2312-
// Rejected in parser (but may change with template-list discovery)
2313-
check(
2314-
"
2315-
fn f() {
2316-
let x = texture_2d<f32>();
2317-
}
2318-
",
2319-
r#"error: type `texture_2d` is not constructible
2320-
┌─ wgsl:3:21
2321-
2322-
3 │ let x = texture_2d<f32>();
2323-
│ ^^^^^^^^^^ type is not constructible
2324-
23252309
"#,
23262310
);
23272311

0 commit comments

Comments
 (0)