-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
example, foo.rs
:
#![crate_type = "lib"]
mod inner {
pub struct Foo {
pub field: i32
}
}
pub fn foo() -> inner::Foo {
inner::Foo { field: 42 }
}
bar.rs
:
extern crate foo;
fn main() {
let f = foo::foo();
drop(f);
println!("{}", f.field);
}
foo
compiles cleanly, bar
doesn't compile because oh no! I've forgotten to make foo::inner::Foo
Copy
able.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.