]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/must_use-in-stdlib-traits.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / compile-fail / must_use-in-stdlib-traits.rs
index 39472ae11fbc565ef63835a6b56da59921c200b6..70dddf61fb7d89a0f94273551f7ee7ee000a90cb 100644 (file)
@@ -39,9 +39,9 @@ fn square_fn() -> impl Fn(u32) -> u32 {
 }
 
 fn main() {
-   iterator(); //~ ERROR unused implementer of `std::iter::Iterator` that must be used
-   future(); //~ ERROR unused implementer of `std::future::Future` that must be used
-   square_fn_once(); //~ ERROR unused implementer of `std::ops::FnOnce` that must be used
-   square_fn_mut(); //~ ERROR unused implementer of `std::ops::FnMut` that must be used
-   square_fn(); //~ ERROR unused implementer of `std::ops::Fn` that must be used
+   iterator(); //~ ERROR unused implementer of `Iterator` that must be used
+   future(); //~ ERROR unused implementer of `Future` that must be used
+   square_fn_once(); //~ ERROR unused implementer of `FnOnce` that must be used
+   square_fn_mut(); //~ ERROR unused implementer of `FnMut` that must be used
+   square_fn(); //~ ERROR unused implementer of `Fn` that must be used
 }