in shed/borrowed/src/lib.rs [307:346]
fn aliases() {
let mut a = 1;
let mut c = A {
x: "foo".to_string(),
};
{
borrowed!(a as a2);
borrowed!(a as a2,);
}
{
borrowed!(mut a as a2);
borrowed!(mut a as a2,);
}
{
borrowed!(c.x as x2: &str);
borrowed!(c.x as x2: &str,);
}
{
borrowed!(mut c.x as x2:&str);
borrowed!(mut c.x as x2:&str,);
}
{
borrowed!(a, a as a2);
borrowed!(a, a as a2,);
}
{
borrowed!(a, mut a as a2);
borrowed!(a, mut a as a2,);
}
{
borrowed!(a, c.x as x2: &str);
borrowed!(a, c.x as x2: &str,);
}
{
borrowed!(a, mut c.x as x2: &String);
borrowed!(a, mut c.x as x2: &String,);
}
}