2023-06-23 09:20:45 -05:00
|
|
|
//@ run-fail
|
|
|
|
//@ compile-flags: --test
|
|
|
|
// test that messages referencing non-existent fields cause test failures
|
|
|
|
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
extern crate rustc_driver;
|
|
|
|
extern crate rustc_fluent_macro;
|
|
|
|
extern crate rustc_macros;
|
|
|
|
extern crate rustc_errors;
|
|
|
|
use rustc_macros::Diagnostic;
|
2024-02-28 21:53:44 -06:00
|
|
|
use rustc_errors::{DiagMessage, SubdiagMessage};
|
2023-06-23 09:20:45 -05:00
|
|
|
extern crate rustc_session;
|
|
|
|
|
2023-11-21 16:53:07 -06:00
|
|
|
rustc_fluent_macro::fluent_messages! { "./example.ftl" }
|
2023-06-23 09:20:45 -05:00
|
|
|
|
|
|
|
#[derive(Diagnostic)]
|
|
|
|
#[diag(no_crate_bad_reference)]
|
|
|
|
struct BadRef;
|