]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/crashes/ice-2774.rs
Merge pull request #3918 from matthiaskrgr/typos
[rust.git] / tests / ui / crashes / ice-2774.rs
index fdc671a84e086009db675a6651677ae263c6cb7f..47f8e3b18eeaa217b16d62787769dd16db8ec9c1 100644 (file)
@@ -1,6 +1,8 @@
+// run-pass
+
 use std::collections::HashSet;
 
-/// See https://github.com/rust-lang/rust-clippy/issues/2774
+// See rust-lang/rust-clippy#2774.
 
 #[derive(Eq, PartialEq, Debug, Hash)]
 pub struct Bar {
@@ -11,14 +13,14 @@ pub struct Bar {
 pub struct Foo {}
 
 #[allow(clippy::implicit_hasher)]
-// This should not cause a 'cannot relate bound region' ICE
+// This should not cause a "cannot relate bound region" ICE.
 pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
     let mut foos = HashSet::new();
     foos.extend(bars.iter().map(|b| &b.foo));
 }
 
 #[allow(clippy::implicit_hasher)]
-// Also this should not cause a 'cannot relate bound region' ICE
+// Also, this should not cause a "cannot relate bound region" ICE.
 pub fn add_barfoos_to_foos2(bars: &HashSet<&Bar>) {
     let mut foos = HashSet::new();
     foos.extend(bars.iter().map(|b| &b.foo));