]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/where-allowed-2.rs
Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / where-allowed-2.rs
index 462508f306ef34f4b1f3de692f996a79a3d894e8..d5a87b5d468340b3673d52c926b971597a9cc834 100644 (file)
@@ -1,8 +1,7 @@
-//! Ideally, these tests would go in `where-allowed.rs`, but we bail out
-//! too early to display them.
 use std::fmt::Debug;
 
-// Disallowed
-fn in_adt_in_return() -> Vec<impl Debug> { panic!() } //~ ERROR cannot resolve opaque type
+// check-pass
+
+fn in_adt_in_return() -> Vec<impl Debug> { panic!() }
 
 fn main() {}