fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
302 B14 linesraw
1// run-rustfix
2
3#![allow(unused_assignments)]
4#![allow(unused_variables)]
5#![allow(dead_code)]
6#![deny(unused_mut)]
7
8struct Foo;
9impl Foo {
10    fn foo(self) {} //~ ERROR: variable does not need to be mutable
11    fn bar(self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
12}
13
14fn main() {}