]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/min_const_fn/min_const_fn.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / min_const_fn.rs
index 8b423da78829290c4b06841f46649547804f5010..d0f63b148ff2bf9b712ce38866b3fc5fac8d6254 100644 (file)
@@ -136,9 +136,7 @@ const fn no_rpit() -> impl std::fmt::Debug {} //~ ERROR `impl Trait` in const fn
 const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {} //~ ERROR trait bounds other than `Sized`
 const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
 //~^ ERROR trait bounds other than `Sized`
-//~| WARNING cannot return reference to temporary value
-//~| WARNING this error has been downgraded to a warning
-//~| WARNING this warning will become a hard error in the future
+//~| ERROR cannot return reference to temporary value
 
 const fn no_unsafe() { unsafe {} }