This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Prevent link mangling on Google | |
// @namespace LordBusiness.LMG | |
// @include https://www.google.com/search* | |
// @grant none | |
// @version 1.1 | |
// @author radiantly | |
// @description Prevent google from mangling the link when copying or clicking the link on Firefox | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
enum Void {} | |
let res: Result<u32, Void> = Ok(0); | |
// Err doesn't exist anymore, so Ok is actually irrefutable. | |
// `Void` must be covered here | |
let Ok(num) = res; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Yell { name: &'static str } | |
impl Drop for Yell { | |
fn drop(&mut self) { | |
println!("{} dropped!", self.name); | |
} | |
} | |
fn main() { | |
let bob = Yell { name: "Bob" }; | |
let carol = Yell { |