Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
4b8098bb
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4b8098bb
编写于
5月 05, 2015
作者:
R
Ruud van Asseldonk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: Update expected compile-fail message for E0282
上级
414dfb13
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
30 addition
and
26 deletion
+30
-26
src/test/compile-fail/issue-12187-1.rs
src/test/compile-fail/issue-12187-1.rs
+2
-2
src/test/compile-fail/issue-12187-2.rs
src/test/compile-fail/issue-12187-2.rs
+2
-2
src/test/compile-fail/issue-5062.rs
src/test/compile-fail/issue-5062.rs
+2
-2
src/test/compile-fail/issue-6458-2.rs
src/test/compile-fail/issue-6458-2.rs
+2
-2
src/test/compile-fail/issue-6458-3.rs
src/test/compile-fail/issue-6458-3.rs
+2
-2
src/test/compile-fail/issue-6458-4.rs
src/test/compile-fail/issue-6458-4.rs
+2
-2
src/test/compile-fail/issue-6458.rs
src/test/compile-fail/issue-6458.rs
+3
-2
src/test/compile-fail/issue-7813.rs
src/test/compile-fail/issue-7813.rs
+2
-2
src/test/compile-fail/method-ambig-one-trait-unknown-int-type.rs
...t/compile-fail/method-ambig-one-trait-unknown-int-type.rs
+3
-2
src/test/compile-fail/traits-multidispatch-convert-ambig-dest.rs
...t/compile-fail/traits-multidispatch-convert-ambig-dest.rs
+3
-2
src/test/compile-fail/unconstrained-none.rs
src/test/compile-fail/unconstrained-none.rs
+2
-2
src/test/compile-fail/unconstrained-ref.rs
src/test/compile-fail/unconstrained-ref.rs
+2
-2
src/test/compile-fail/vector-no-ann.rs
src/test/compile-fail/vector-no-ann.rs
+3
-2
未找到文件。
src/test/compile-fail/issue-12187-1.rs
浏览文件 @
4b8098bb
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// Copyright 2014
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -14,5 +14,5 @@ fn new<T>() -> &'static T {
fn
main
()
{
let
&
v
=
new
();
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/issue-12187-2.rs
浏览文件 @
4b8098bb
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// Copyright 2014
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -14,5 +14,5 @@ fn new<'r, T>() -> &'r T {
fn
main
()
{
let
&
v
=
new
();
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/issue-5062.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -9,4 +9,4 @@
// except according to those terms.
fn
main
()
{
format!
(
"{:?}"
,
None
);
}
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
src/test/compile-fail/issue-6458-2.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -11,5 +11,5 @@
fn
main
()
{
// Unconstrained type:
format!
(
"{:?}"
,
None
);
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/issue-6458-3.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -12,5 +12,5 @@
fn
main
()
{
mem
::
transmute
(
0
);
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/issue-6458-4.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -10,7 +10,7 @@
fn
foo
(
b
:
bool
)
->
Result
<
bool
,
String
>
{
Err
(
"bar"
.to_string
());
//~^ ERROR type annotations required
//~^ ERROR type annotations
or generic parameter binding
required
}
fn
main
()
{
...
...
src/test/compile-fail/issue-6458.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -16,7 +16,8 @@
pub
fn
foo
<
State
>
(
_
:
TypeWithState
<
State
>
)
{}
pub
fn
bar
()
{
foo
(
TypeWithState
(
marker
::
PhantomData
));
//~ ERROR type annotations required
foo
(
TypeWithState
(
marker
::
PhantomData
));
//~^ ERROR type annotations or generic parameter binding required
}
fn
main
()
{
...
...
src/test/compile-fail/issue-7813.rs
浏览文件 @
4b8098bb
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// Copyright 2014
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -10,5 +10,5 @@
fn
main
()
{
let
v
=
&
[];
let
it
=
v
.iter
();
//~ ERROR type annotations required
let
it
=
v
.iter
();
//~ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/method-ambig-one-trait-unknown-int-type.rs
浏览文件 @
4b8098bb
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -31,7 +31,8 @@ fn foo(&self) -> isize {2}
fn
m1
()
{
// we couldn't infer the type of the vector just based on calling foo()...
let
mut
x
=
Vec
::
new
();
//~ ERROR type annotations required
let
mut
x
=
Vec
::
new
();
//~^ ERROR type annotations or generic parameter binding required
x
.foo
();
}
...
...
src/test/compile-fail/traits-multidispatch-convert-ambig-dest.rs
浏览文件 @
4b8098bb
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// Copyright 2014
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -33,7 +33,8 @@ fn test<T,U>(_: T, _: U)
}
fn
a
()
{
test
(
22
,
std
::
default
::
Default
::
default
());
//~ ERROR type annotations required
test
(
22
,
std
::
default
::
Default
::
default
());
//~^ ERROR type annotations or generic parameter binding required
}
fn
main
()
{}
src/test/compile-fail/unconstrained-none.rs
浏览文件 @
4b8098bb
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -11,5 +11,5 @@
// Issue #5062
fn
main
()
{
None
;
//~ ERROR type annotations required
None
;
//~ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/unconstrained-ref.rs
浏览文件 @
4b8098bb
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -13,5 +13,5 @@ struct S<'a, T:'a> {
}
fn
main
()
{
S
{
o
:
&
None
};
//~ ERROR type annotations required
S
{
o
:
&
None
};
//~ ERROR type annotations
or generic parameter binding
required
}
src/test/compile-fail/vector-no-ann.rs
浏览文件 @
4b8098bb
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// Copyright 2012
-2015
The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
...
...
@@ -10,5 +10,6 @@
fn
main
()
{
let
_
foo
=
Vec
::
new
();
//~ ERROR type annotations required
let
_
foo
=
Vec
::
new
();
//~^ ERROR type annotations or generic parameter binding required
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录