{"action":"opened","issue":{"url":"https://api.github.com/repos/Kimundi/lazy-static.rs/issues/13","labels_url":"https://api.github.com/repos/Kimundi/lazy-static.rs/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Kimundi/lazy-static.rs/issues/13/comments","events_url":"https://api.github.com/repos/Kimundi/lazy-static.rs/issues/13/events","html_url":"https://github.com/Kimundi/lazy-static.rs/issues/13","id":54525473,"number":13,"title":"Missing Copy implementation warning","user":{"login":"aldanor","id":2418513,"avatar_url":"https://avatars.githubusercontent.com/u/2418513?v=3","gravatar_id":"","url":"https://api.github.com/users/aldanor","html_url":"https://github.com/aldanor","followers_url":"https://api.github.com/users/aldanor/followers","following_url":"https://api.github.com/users/aldanor/following{/other_user}","gists_url":"https://api.github.com/users/aldanor/gists{/gist_id}","starred_url":"https://api.github.com/users/aldanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldanor/subscriptions","organizations_url":"https://api.github.com/users/aldanor/orgs","repos_url":"https://api.github.com/users/aldanor/repos","events_url":"https://api.github.com/users/aldanor/events{/privacy}","received_events_url":"https://api.github.com/users/aldanor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T00:33:30Z","updated_at":"2015-01-16T00:33:30Z","closed_at":null,"body":"```rust\r\nmacro_rules! register_global {\r\n    ($var:ident, $suffix:ident) => {\r\n        lazy_static! {\r\n            pub static ref $var: c_int = { init(); concat_idents!($var, $suffix) };\r\n        }\r\n    }\r\n}\r\n\r\nregister_global!(VAR, _g);\r\n\r\n#[link(name = \"library\")]\r\nextern \"C\" {\r\n    c_void init();\r\n    pub static mut VAR_g: c_int;\r\n}\r\n```\r\nthis works, but...\r\n```rust\r\n<lazy_static macros>:17:64: 18:27 warning: type could implement `Copy`; consider adding `impl Copy`, #[warn(missing_copy_implementations)] on by default\r\n<lazy_static macros>:17 # [ allow ( non_camel_case_types ) ] # [ allow ( dead_code ) ] pub struct $ N\r\n<lazy_static macros>:18 { __private_field : (  ) } pub static $ N : $ N = $ N { __private_field : (  )\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\n<lazy_static macros>:7:1: 7:38 note: expansion site\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\n<lazy_static macros>:4:1: 4:65 note: expansion site\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\nlib.rs:61:9: 63:10 note: expansion site\r\nlib.rs:59:1: 65:2 note: in expansion of register_global!\r\nlib.rs:67:1: 67:35 note: expansion site\r\n<lazy_static macros>:17:64: 18:27 warning: type could implement `Copy`; consider adding `impl Copy`, #[warn(missing_copy_implementations)] on by default\r\n<lazy_static macros>:17 # [ allow ( non_camel_case_types ) ] # [ allow ( dead_code ) ] pub struct $ N\r\n<lazy_static macros>:18 { __private_field : (  ) } pub static $ N : $ N = $ N { __private_field : (  )\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\n<lazy_static macros>:7:1: 7:38 note: expansion site\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\n<lazy_static macros>:4:1: 4:65 note: expansion site\r\n<lazy_static macros>:1:1: 22:15 note: in expansion of lazy_static!\r\nlib.rs:61:9: 63:10 note: expansion site\r\nlib.rs:59:1: 65:2 note: in expansion of register_global!\r\nlib.rs:67:1: 67:35 note: expansion site\r\n```"}}