about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorThibsG <Thibs@debian.com>2020-08-25 09:16:08 +0200
committerThibsG <Thibs@debian.com>2020-08-27 18:25:38 +0200
commit3cb75c2e5cdd4f450f2974c5e052d569674d95fd (patch)
tree398fad2c7fc1ab59c6c86df30f1bbd4e1eca19ec /tests
parent2a3ee5fa854b49530008582900c6ea7fac120d1c (diff)
downloadrust-3cb75c2e5cdd4f450f2974c5e052d569674d95fd.tar.gz
rust-3cb75c2e5cdd4f450f2974c5e052d569674d95fd.zip
Remove expansion restriction + fix doc and tests naming
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/new_ret_no_self.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/new_ret_no_self.rs b/tests/ui/new_ret_no_self.rs
index e98360ea691..e82873629a5 100644
--- a/tests/ui/new_ret_no_self.rs
+++ b/tests/ui/new_ret_no_self.rs
@@ -137,9 +137,9 @@ impl MutPointerReturnerOk {
     }
 }
 
-struct MutPointerReturnerOk2;
+struct ConstPointerReturnerOk2;
 
-impl MutPointerReturnerOk2 {
+impl ConstPointerReturnerOk2 {
     // should not trigger lint
     pub fn new() -> *const Self {
         unimplemented!();
@@ -283,7 +283,7 @@ mod issue5435 {
         }
     }
 
-    trait MutPointerReturnerOk2 {
+    trait ConstPointerReturnerOk2 {
         // should not trigger lint
         fn new() -> *const Self
         where