mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
14 lines
322 B
Rust
14 lines
322 B
Rust
//@ run-pass
|
|
//@ aux-build:where_clauses_xc.rs
|
|
|
|
extern crate where_clauses_xc;
|
|
|
|
use where_clauses_xc::{Equal, equal};
|
|
|
|
fn main() {
|
|
println!("{}", equal(&1, &2));
|
|
println!("{}", equal(&1, &1));
|
|
println!("{}", "hello".equal(&"hello"));
|
|
println!("{}", "hello".equals::<isize,&str>(&1, &1, &"foo", &"bar"));
|
|
}
|