// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Next - Using Declarations > Declarations - using (fail) > { using[x] = y; } 1`] = `
"SyntaxError [1:7-1:8]: 'using' declarations cannot have destructuring patterns
> 1 | { using[x] = y; }
    |        ^ 'using' declarations cannot have destructuring patterns"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { await
using x = y; } 1`] = `
"SyntaxError [2:6-2:7]: Unexpected token: 'identifier'
  1 | async function f() { await
> 2 | using x = y; }
    |       ^ Unexpected token: 'identifier'"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { await using {a} = b; } 1`] = `
"SyntaxError [1:33-1:34]: 'await using' declarations cannot have destructuring patterns
> 1 | async function f() { await using {a} = b; }
    |                                  ^ 'await using' declarations cannot have destructuring patterns"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { await using let = x; } 1`] = `
"SyntaxError [1:33-1:36]: 'A lexical declaration can't define a 'let' binding
> 1 | async function f() { await using let = x; }
    |                                  ^^^ 'A lexical declaration can't define a 'let' binding"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { await using x; } 1`] = `
"SyntaxError [1:34-1:35]: 'await using' declarations must have an initializer
> 1 | async function f() { await using x; }
    |                                   ^ 'await using' declarations must have an initializer"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { for (await using
x of y) {} } 1`] = `
"SyntaxError [2:0-2:1]: Expected ';'
  1 | async function f() { for (await using
> 2 | x of y) {} }
    | ^ Expected ';'"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { for (await using [a] of b) {} } 1`] = `
"SyntaxError [1:38-1:39]: 'await using' declarations cannot have destructuring patterns
> 1 | async function f() { for (await using [a] of b) {} }
    |                                       ^ 'await using' declarations cannot have destructuring patterns"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { for (await using x in y) {} } 1`] = `
"SyntaxError [1:40-1:42]: 'await using' declarations are not allowed in for-in loops
> 1 | async function f() { for (await using x in y) {} }
    |                                         ^^ 'await using' declarations are not allowed in for-in loops"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > async function f() { function g() { await using x = y; } } 1`] = `
"SyntaxError [1:36-1:47]: 'await using' declarations are only allowed inside async functions and at the top levels of modules
> 1 | async function f() { function g() { await using x = y; } }
    |                                     ^^^^^^^^^^^ 'await using' declarations are only allowed inside async functions and at the top levels of modules"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > await using [a] = b 1`] = `
"SyntaxError [1:12-1:13]: 'await using' declarations cannot have destructuring patterns
> 1 | await using [a] = b
    |             ^ 'await using' declarations cannot have destructuring patterns"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > await using x = y 1`] = `
"SyntaxError [1:0-1:11]: 'await using' declarations are only allowed inside async functions and at the top levels of modules
> 1 | await using x = y
    | ^^^^^^^^^^^ 'await using' declarations are only allowed inside async functions and at the top levels of modules"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > await using x = y 2`] = `
"SyntaxError [1:0-1:11]: 'await using' declarations are only allowed inside async functions and at the top levels of modules
> 1 | await using x = y
    | ^^^^^^^^^^^ 'await using' declarations are only allowed inside async functions and at the top levels of modules"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > await using x 1`] = `
"SyntaxError [1:12-1:13]: 'await using' declarations must have an initializer
> 1 | await using x
    |             ^ 'await using' declarations must have an initializer"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > class A { static { await using x = y; } } 1`] = `
"SyntaxError [1:19-1:24]: cannot use "await" in static blocks
> 1 | class A { static { await using x = y; } }
    |                    ^^^^^ cannot use "await" in static blocks"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > for (;;) using y = z 1`] = `
"SyntaxError [1:15-1:16]: Unexpected token: 'identifier'
> 1 | for (;;) using y = z
    |                ^ Unexpected token: 'identifier'"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > for (await using x of y) {} 1`] = `
"SyntaxError [1:5-1:16]: 'await using' declarations are only allowed inside async functions and at the top levels of modules
> 1 | for (await using x of y) {}
    |      ^^^^^^^^^^^ 'await using' declarations are only allowed inside async functions and at the top levels of modules"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > for (await using x of y) {} 2`] = `
"SyntaxError [1:5-1:16]: 'await using' declarations are only allowed inside async functions and at the top levels of modules
> 1 | for (await using x of y) {}
    |      ^^^^^^^^^^^ 'await using' declarations are only allowed inside async functions and at the top levels of modules"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > for (using
x of y) {} 1`] = `
"SyntaxError [2:0-2:1]: Expected ';'
  1 | for (using
> 2 | x of y) {}
    | ^ Expected ';'"
`;

exports[`Next - Using Declarations > Declarations - using (fail) > for (using [a] of b) {} 1`] = `
"SyntaxError [1:11-1:12]: 'using' declarations cannot have destructuring patterns
> 1 | for (using [a] of b) {}
    |            ^ 'using' declarations cannot have destructuring patterns"
