fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `Self` cannot be known at compilation time 2 --> $DIR/issue-27078.rs:3:12 3 | 4LL | fn foo(self) -> &'static i32 { 5 | ^^^^ doesn't have a size known at compile-time 6 | 7 = help: unsized fn params are gated as an unstable feature 8help: consider further restricting `Self` 9 | 10LL | fn foo(self) -> &'static i32 where Self: Sized { 11 | +++++++++++++++++ 12help: function arguments must have a statically known size, borrowed types always have a known size 13 | 14LL | fn foo(&self) -> &'static i32 { 15 | + 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0277`.