Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
error-codes
/
E0277.rs
blob: f0de4e3deb10fcda1ca24954ce86f205790fcedc [
file
] [
log
] [
blame
] [
edit
]
use
std
::
path
::
Path
;
trait
Foo
{
fn
bar
(&
self
);
}
fn
some_func
<
T
:
Foo
>(
foo
:
T
)
{
foo
.
bar
();
}
fn
f
(
p
:
Path
)
{
}
//~^ ERROR the size for values of type
fn
main
()
{
some_func
(
5i32
);
//~^ ERROR the trait bound `i32: Foo` is not satisfied
}