Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo<'a> {
- f: &'a u32,
- }
- struct Bar<'a, 'b> {
- a: &'a (),
- b: &'b (),
- }
- trait Test {
- fn test(&mut self);
- }
- // works
- impl Test for Foo<'static> {
- fn test(&mut self) {
- }
- }
- // doesn't work
- impl Drop for Foo<'static> {
- fn drop(&mut self) {
- }
- }
- // works
- impl<'a, 'b: 'a> Test for Bar<'a, 'b> {
- fn test(&mut self) {
- }
- }
- // doesn't work
- impl<'a, 'b: 'a> Drop for Bar<'a, 'b> {
- fn drop(&mut self) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement