Can't cast `self as &Trait` in trait default method · Issue #54998 · rust-lang/rust

trait Blah { fn test(&self) { self as &Blah; } } error[E0277]: the size for values of type `Self` cannot be known at compilation time --> src/lib.rs:3:9 | 3 | self as &Blah; | ^^^^ doesn't have a s...