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
{{ message }}
Repository navigation
Methods that return unsized types can be (uselessly) codegened #26376
error[E0161]: cannot move a value of type [u8]: the size of [u8] cannot be statically determined
--> src/main.rs:7:17
|
7 | let _ = f.foo();
| ^^^^^^^
error: aborting due to previous error
Activity
brson commentedon Jan 12, 2017
Still a problem?
nikomatsakis commentedon Jan 12, 2017
It's still true, but I'm not especially worried about it.
durka commentedon Aug 29, 2018
Isn't it a bug that you can declare such a trait at all? There's no way to implement it, right?
jonas-schievink commentedon Jan 31, 2020
This code is now rejected with:
Rollup merge of rust-lang#71541 - wesleywiser:issue_26376, r=Dylan-DPC
Auto merge of rust-lang#71566 - Dylan-DPC:rollup-9xoz6fg, r=Dylan-DPC