parent
11e9947ff5
commit
89cd2f6bd0
4 changed files with 69 additions and 0 deletions
6
src/test/compile-fail/issue-2294.rs
Normal file
6
src/test/compile-fail/issue-2294.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class cat {
|
||||
fn kitty() -> cat { self } //! ERROR: can't return self or store it in a data structure
|
||||
new() { }
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue