// Copyright (C) 2016 Symtern Project Contributors // // Licensed under the Apache License, Version 2.0 or the MIT // license , // at your option. This file may not be copied, modified, or // distributed except according to those terms. // error-pattern:Detected an invalid attempt to resolve a symbol #![cfg(debug_assertions)] extern crate symtern; use symtern::prelude::*; use symtern::Pool; fn main() { let mut p1 = Pool::::new(); let mut p2 = Pool::::new(); let s1 = p1.intern("foo").unwrap(); let s2 = p2.intern("bar").unwrap(); p1.resolve(s2).unwrap(); }