about summary refs log tree commit diff
path: root/tests/ui/tuple/missing-field-access.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/tuple/missing-field-access.rs')
-rw-r--r--tests/ui/tuple/missing-field-access.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ui/tuple/missing-field-access.rs b/tests/ui/tuple/missing-field-access.rs
index 4ccd759ccd2..b94b7cf977c 100644
--- a/tests/ui/tuple/missing-field-access.rs
+++ b/tests/ui/tuple/missing-field-access.rs
@@ -1,3 +1,7 @@
+// Ensure that suggestions to search for missing intermediary field accesses are available for both
+// tuple structs *and* regular tuples.
+// Ensure that we do not suggest pinning the expression just because `Pin::get_ref` exists.
+// https://github.com/rust-lang/rust/issues/144602
 use std::{fs::File, io::BufReader};
 
 struct F(BufReader<File>);
@@ -6,12 +10,7 @@ fn main() {
     let f = F(BufReader::new(File::open("x").unwrap()));
     let x = f.get_ref(); //~ ERROR E0599
     //~^ HELP one of the expressions' fields has a method of the same name
-    //~| HELP consider pinning the expression
     let f = (BufReader::new(File::open("x").unwrap()), );
     let x = f.get_ref(); //~ ERROR E0599
     //~^ HELP one of the expressions' fields has a method of the same name
-    //~| HELP consider pinning the expression
-
-    // FIXME(estebank): the pinning suggestion should not be included in either case.
-    // https://github.com/rust-lang/rust/issues/144602
 }