We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904fedf commit 471a2a8Copy full SHA for 471a2a8
src/doc/rustc-dev-guide/examples/rustc-driver-example.rs
@@ -34,9 +34,9 @@ impl rustc_span::source_map::FileLoader for MyFileLoader {
34
fn read_file(&self, path: &Path) -> io::Result<String> {
35
if path == Path::new("main.rs") {
36
Ok(r#"
37
+static MESSAGE: &str = "Hello, World!";
38
fn main() {
- let message = "Hello, World!";
39
- println!("{message}");
+ println!("{MESSAGE}");
40
}
41
"#
42
.to_string())
0 commit comments