@@ -3659,7 +3659,7 @@ fn test_principal_admits() {
3659
3659
/// Only concerns itself with simple errors (no nesting).
3660
3660
#[ test]
3661
3661
fn test_simple_bad_syntax_bindings ( ) {
3662
- let bad = vec ! [
3662
+ let bad = [
3663
3663
// bad let-binding -- binding item is not a list
3664
3664
"(let (oops (bar u1)) (ok true))" ,
3665
3665
// bad let-binding -- binding item is not a 2-element list
@@ -3683,7 +3683,7 @@ fn test_simple_bad_syntax_bindings() {
3683
3683
// bad type signature (no longer a bad syntax binding error)
3684
3684
"(from-consensus-buff? (tuple (a (string-ascii -12))) 0x00)" ,
3685
3685
] ;
3686
- let expected = vec ! [
3686
+ let expected = [
3687
3687
CheckErrors :: BadSyntaxBinding ( SyntaxBindingError :: let_binding_not_list ( 0 ) ) ,
3688
3688
CheckErrors :: BadSyntaxBinding ( SyntaxBindingError :: let_binding_invalid_length ( 0 ) ) ,
3689
3689
CheckErrors :: BadSyntaxBinding ( SyntaxBindingError :: let_binding_not_atom ( 0 ) ) ,
@@ -3708,7 +3708,7 @@ fn test_simple_bad_syntax_bindings() {
3708
3708
/// type-check error.
3709
3709
#[ test]
3710
3710
fn test_nested_bad_type_signature_syntax_bindings ( ) {
3711
- let bad = vec ! [
3711
+ let bad = [
3712
3712
// bad tuple type signature within a tower of tuples
3713
3713
"(define-public (foo (bar { a: { b: { c: (string-ascii -19) } } })) (ok true))" ,
3714
3714
// bad type signature within a tower of lists
@@ -3717,7 +3717,7 @@ fn test_nested_bad_type_signature_syntax_bindings() {
3717
3717
"(from-consensus-buff? { a : { b: { c: (string-ascii -19) } } } 0x00)" ,
3718
3718
] ;
3719
3719
3720
- let expected = vec ! [
3720
+ let expected = [
3721
3721
CheckErrors :: ValueOutOfBounds ,
3722
3722
CheckErrors :: InvalidTypeDescription ,
3723
3723
CheckErrors :: ValueOutOfBounds ,
0 commit comments