Remove expansion restriction + fix doc and tests naming

This commit is contained in:
ThibsG 2020-08-25 09:16:08 +02:00
parent 2a3ee5fa85
commit 3cb75c2e5c
2 changed files with 27 additions and 13 deletions

View file

@ -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