You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area(&rectangle) do not compile with rustc 1.56.0. Use rectangle.area()
With rustc 1.56.0 (Debian sid)
"area(&rectangle)" produces the compilation error: error[E0425]: cannot find function `area` in this scope
rectangle.area() compiles. Change also _triangle.area() for consistency.
0 commit comments