example assumes a static exists

This was removed, likely by mistake, during a refactor.
This commit is contained in:
Tshepang Mbambo 2025-03-30 00:16:39 +02:00
parent 190844eeb7
commit eb3d07befc
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ impl rustc_span::source_map::FileLoader for MyFileLoader {
fn read_file(&self, path: &Path) -> io::Result<String> {
if path == Path::new("main.rs") {
Ok(r#"
static MESSAGE: &str = "Hello, World!";
fn main() {
let message = "Hello, World!";
println!("{message}");
println!("{MESSAGE}");
}
"#
.to_string())