diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-05 15:35:37 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-05 15:50:02 +0100 |
| commit | 60ae1590af034755b5cb1e1e71f2240a710299a2 (patch) | |
| tree | 605d11f071a776c0ca33dcfea0a774379b0880bb /src/test/compile-fail | |
| parent | 1f71a0f48d18d80ff3be6970d582c5a67f976329 (diff) | |
| download | rust-60ae1590af034755b5cb1e1e71f2240a710299a2.tar.gz rust-60ae1590af034755b5cb1e1e71f2240a710299a2.zip | |
Switch to new param kind bound syntax
And remove support for the old syntax
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/unique-unique-kind.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/use-after-send.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/unique-unique-kind.rs b/src/test/compile-fail/unique-unique-kind.rs index ad172f7ae83..8845e15721f 100644 --- a/src/test/compile-fail/unique-unique-kind.rs +++ b/src/test/compile-fail/unique-unique-kind.rs @@ -1,6 +1,6 @@ // error-pattern: instantiating a sendable type parameter with a copyable type -fn f<send T>(i: T) { +fn f<T: send>(i: T) { } fn main() { diff --git a/src/test/compile-fail/use-after-send.rs b/src/test/compile-fail/use-after-send.rs index 7dc3f7b4a32..858cc62a944 100644 --- a/src/test/compile-fail/use-after-send.rs +++ b/src/test/compile-fail/use-after-send.rs @@ -1,5 +1,5 @@ // error-pattern: Unsatisfied precondition constraint -fn send<send T>(ch: _chan<T>, -data: T) { +fn send<T: send>(ch: _chan<T>, -data: T) { log(debug, ch); log(debug, data); fail; |
