You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nice_errors.rs
    path of file: ./repos/prisma-engines/psl/psl/tests/parsing
    
    the code of the file until where you have to start completion: use crate::common::*;

#[test]
fn nice_error_for_missing_model_keyword() {
    let dml = indoc! {r#"
        User {
          id Int @id
        }
    "#};

    let expectation = expect![[r#"
        [1;91merror[0m: [1mError validating: This block is invalid. It does not start with any known Prisma schema keyword. Valid keywords include 'model', 'enum', 'type', 'datasource' and 'generator'.[0m
          [1;94m-->[0m  [4mschema.prisma:1[0m
        [1;94m   | [0m
        [1;94m   | [0m
        [1;94m 1 | [0m[1;91mUser {[0m
        [1;94m 2 | [0m  id Int @id
        [1;94m 3
    
fn nice_error_on_incorrect_enum_field() {
    let dml = indoc! {r#"
        enum Role {
          A-dmin
          User
        }
    "#};

    let expectation = expect![[r#"
        [1;91merror[0m: [1mError validating: The character `-` is not allowed in Enum Value names.[0m
          [1;94m-->[0m  [4mschema.prisma:2[0m
        [1;94m   | [0m
        [1;94m 1 | [0menum Role {
        [1;94m 2 | [0m  [1;91mA-dmin[0m
        [1;94m   | [0m
    "#]];

    expect_error(dml, &expectation)
}

#[test]
fn nice_error_missing_type() {
    let dml = indoc! {r#"
        model User {
          id Int @id
          name
        }
    "#};

    let expectation = expect![[r#"
        [1;91merror[0m: [1mError validating model "User": This field declaration is invalid. It is either missing a name or a type.[0m
          [1;94m-->[0m  [4mschema.prisma:3[0m
        [1;94m   | [0m
        [1;94m 2 | [0m  id Int @id
        [1;94m 3 | [0m  [1;91mname[0m
        [1;94m 4 | [0m}
        [1;94m   | [0m
    "#]];

    expect_error(dml, &expectation)
}