Closed as not planned
Description
I tried this code:
trait MyTrait {
fn foo(self);
}
I expected to see this happen:
Error: the size for values of type 'Self' do not have a know size at compile time
# ...
Instead, this happened:
# No Errors
Meta
rustc --version --verbose
:
rustc 1.85.0-nightly (21fe748be 2024-12-11)
binary: rustc
commit-hash: 21fe748be15271ea5804e0507cd699b675efe038
commit-date: 2024-12-11
host: x86_64-unknown-linux-gnu
release: 1.85.0-nightly
LLVM version: 19.1.5
Backtrace
# None, because it does not throw an error, which is kinda the problem
The only reason i think this is here is to allow for dyn
compatibility