about summary refs log tree commit diff
path: root/tests/ui/lint/issue-99387.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-06-26 17:49:35 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-07 13:17:00 +0000
commit907f97e4111b1e52cef13203ec4515449ab4ae59 (patch)
treeae5e8879aa826689dd23eb8a4507dc58892a9848 /tests/ui/lint/issue-99387.rs
parent4c99872efe97c8e6183dfc9b729bc3a2903ac40b (diff)
downloadrust-907f97e4111b1e52cef13203ec4515449ab4ae59.tar.gz
rust-907f97e4111b1e52cef13203ec4515449ab4ae59.zip
Remove normalization from `opaque_types_defined_by`
Diffstat (limited to 'tests/ui/lint/issue-99387.rs')
-rw-r--r--tests/ui/lint/issue-99387.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/lint/issue-99387.rs b/tests/ui/lint/issue-99387.rs
index 616eb935e93..ba5031167e3 100644
--- a/tests/ui/lint/issue-99387.rs
+++ b/tests/ui/lint/issue-99387.rs
@@ -1,4 +1,5 @@
-// check-pass
+//! Test that we don't follow through projections to find
+//! opaque types.
 
 #![feature(type_alias_impl_trait)]
 #![allow(private_in_public)]
@@ -18,6 +19,7 @@ impl<'a> Tr for &'a () {
 }
 
 pub fn ohno<'a>() -> <&'a () as Tr>::Item {
+    //~^ ERROR item constrains opaque type that is not in its signature
     None.into_iter()
 }