Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created July 17, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcrichton/afbcadf7118b13e02c25e25c491e77f6 to your computer and use it in GitHub Desktop.
Save alexcrichton/afbcadf7118b13e02c25e25c491e77f6 to your computer and use it in GitHub Desktop.
#![crate_type = "rlib"]
#![cfg_attr(crate_level, allow(elided_lifetimes_in_paths))]
#![cfg_attr(crate_level_warnings, allow(warnings))]
mod foo {
#![allow(elided_lifetimes_in_paths)]
#![allow(warnings)]
use std::fmt::*;
struct A;
impl Debug for A {
fn fmt(&self, _f: &mut Formatter) -> Result {
Ok(())
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment