Find it here: https://github.com/bitemyapp/learnhaskell
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
#![cfg_attr(test, feature(rustc_private))] | |
use std::cell::UnsafeCell; | |
use std::marker::PhantomData; | |
use std::ops; | |
struct InvariantLifetime<'id>( | |
PhantomData<*mut &'id ()>); | |
impl<'id> InvariantLifetime<'id> { | |
#[inline] |
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
require "rubygems" | |
require "awesome_print" | |
Pry.print = proc { |output, value| output.puts value.ai } |