]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/issue-51559.rs
Rollup merge of #81575 - camelid:rustdoc-wrongnamespace-cleanup, r=jyn514
[rust.git] / src / test / ui / consts / issue-51559.rs
index 69f0d8df0aa4aafa1e98f88aaa434b4c5f9a2432..cc644404f7d7351de70b2c410b56faff0cca4cca 100644 (file)
@@ -3,5 +3,6 @@
 const BAR: *mut () = ((|| 3) as fn() -> i32) as *mut ();
 pub const FOO: usize = unsafe { BAR as usize };
 //~^ ERROR any use of this value will cause an error
+//~| WARN this was previously accepted by the compiler but is being phased out
 
 fn main() {}