Update old uses of ~ in comments and debugging statements
This commit is contained in:
parent
796be61e90
commit
7ec8172225
20 changed files with 35 additions and 39 deletions
|
|
@ -37,7 +37,7 @@ fn test<'a,T,U:Copy>(_: &'a isize) {
|
|||
assert_copy::<&'static mut isize>(); //~ ERROR `core::marker::Copy` is not implemented
|
||||
assert_copy::<&'a mut isize>(); //~ ERROR `core::marker::Copy` is not implemented
|
||||
|
||||
// ~ pointers are not ok
|
||||
// owned pointers are not ok
|
||||
assert_copy::<Box<isize>>(); //~ ERROR `core::marker::Copy` is not implemented
|
||||
assert_copy::<String>(); //~ ERROR `core::marker::Copy` is not implemented
|
||||
assert_copy::<Vec<isize> >(); //~ ERROR `core::marker::Copy` is not implemented
|
||||
|
|
|
|||
|
|
@ -25,6 +25,6 @@ fn main() {
|
|||
// compile-flags:-g
|
||||
// gdb-command:list
|
||||
// gdb-check:1[...]fn main() {
|
||||
// gdb-check:2[...]let args : ~[String] = ::std::os::args();
|
||||
// gdb-check:2[...]let args : Vec<String> = ::std::os::args();
|
||||
// gdb-check:3[...]::std::io::println(args[0]);
|
||||
// gdb-check:4[...]}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ struct F { field: isize }
|
|||
pub fn main() {
|
||||
/*foo(1);
|
||||
foo("hi".to_string());
|
||||
foo(~[1, 2, 3]);
|
||||
foo(vec![1, 2, 3]);
|
||||
foo(F{field: 42});
|
||||
foo((1, 2));
|
||||
foo(@1);*/
|
||||
|
|
|
|||
|
|
@ -32,10 +32,6 @@ fn check_strs(actual: &str, expected: &str) -> bool
|
|||
|
||||
pub fn main()
|
||||
{
|
||||
// assert!(check_strs(fmt!("%?", Text(@"foo".to_string())), "Text(@~\"foo\")"));
|
||||
// assert!(check_strs(fmt!("%?", ETag(@~["foo".to_string()], @"bar".to_string())),
|
||||
// "ETag(@~[ ~\"foo\" ], @~\"bar\")"));
|
||||
|
||||
let t = Token::Text("foo".to_string());
|
||||
let u = Token::Section(vec!["alpha".to_string()],
|
||||
true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue