1 error: diagnostics should be created using translatable messages
2 --> $DIR/diagnostics.rs:39:17
4 LL | handler.struct_err("untranslatable diagnostic")
7 note: the lint level is defined here
8 --> $DIR/diagnostics.rs:6:9
10 LL | #![deny(rustc::untranslatable_diagnostic)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: diagnostics should be created using translatable messages
14 --> $DIR/diagnostics.rs:59:14
16 LL | diag.note("untranslatable diagnostic");
19 error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
20 --> $DIR/diagnostics.rs:76:25
22 LL | let _diag = handler.struct_err(fluent::compiletest_example);
25 note: the lint level is defined here
26 --> $DIR/diagnostics.rs:7:9
28 LL | #![deny(rustc::diagnostic_outside_of_impl)]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
32 --> $DIR/diagnostics.rs:79:25
34 LL | let _diag = handler.struct_err("untranslatable diagnostic");
37 error: diagnostics should be created using translatable messages
38 --> $DIR/diagnostics.rs:79:25
40 LL | let _diag = handler.struct_err("untranslatable diagnostic");
43 error: aborting due to 5 previous errors