]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/import-crate-with-invalid-spans/main.rs
Make fields of `Span` private
[rust.git] / src / test / run-pass / import-crate-with-invalid-spans / main.rs
index 39c175f60da41181265162db4b5dcc571e22085a..2f80a0954dc0a2c3f67782eeeb38985cb498cdc5 100644 (file)
@@ -16,7 +16,7 @@
 
 fn main() {
     // The AST of `exported_generic` stored in crate_with_invalid_spans's
-    // metadata should contain an invalid span where span.lo > span.hi.
+    // metadata should contain an invalid span where span.lo() > span.hi().
     // Let's make sure the compiler doesn't crash when encountering this.
     let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
 }