summaryrefslogtreecommitdiffstats
path: root/tests/ui/self
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/self')
-rw-r--r--tests/ui/self/arbitrary_self_types_trait.rs5
-rw-r--r--tests/ui/self/class-missing-self.stderr2
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/self/arbitrary_self_types_trait.rs b/tests/ui/self/arbitrary_self_types_trait.rs
index 973c7cae8..c4651ec71 100644
--- a/tests/ui/self/arbitrary_self_types_trait.rs
+++ b/tests/ui/self/arbitrary_self_types_trait.rs
@@ -1,4 +1,5 @@
// run-pass
+#![allow(unused_allocation)]
use std::rc::Rc;
@@ -13,7 +14,7 @@ impl Trait for Vec<i32> {
}
fn main() {
- let v = vec![1,2,3];
+ let v = vec![1, 2, 3];
- assert_eq!(&[1,2,3], Box::new(Rc::new(v)).trait_method());
+ assert_eq!(&[1, 2, 3], Box::new(Rc::new(v)).trait_method());
}
diff --git a/tests/ui/self/class-missing-self.stderr b/tests/ui/self/class-missing-self.stderr
index 063c3f013..3c37d8197 100644
--- a/tests/ui/self/class-missing-self.stderr
+++ b/tests/ui/self/class-missing-self.stderr
@@ -16,7 +16,7 @@ LL | self.sleep();
| +++++
help: consider importing this function
|
-LL | use std::thread::sleep;
+LL + use std::thread::sleep;
|
error: aborting due to 2 previous errors