シャドーイング練習: Rust just introduced a new "never" type - 動画で英語スピーキングを学ぶ

練習モードを選ぶ

各モードは全画面の練習ルームで開きます。

76 文
文が短すぎたり長すぎる場合は、Editをタップして調整してください。
1
Rust just stabilized one of the strangest types in the entire language.
2
It's a type that has zero possible values yet can magically turn into any other type you want.
3
It's called the never type and it's written with a single exclamation mark.
4
The crazy part is it's been sitting half finished in the language for 10 years.
5
There have been 5 separate failed attempts to ship it and it finally just got stabilized.
6
So let me show you what it actually is, how the Rust team was able to ship it,
7
and whether it really matters for the code you write.
8
Okay, so there's this really good talk about the NeverType from Waffle at RustNL, and it goes over the entire story.
9
The first question is, what is the NeverType?
10
The NeverType represents a computation that will never produce a value.
11
It's built directly into the language, meaning it's not defined in the Rust standard library, and it's what's called an uninhibited type,
12
meaning it does not have any values, so you cannot create it.
13
So it's used for code that is unreachable.
14
For example, expressions like return, infinite loops, or panics.
15
Okay, so to concretely see why the never type is useful, let's look at the documentation for the never type.
16
Here's the first realistic usage of the never type that we see.
17
We have a variable called num, which is an unsigned 32 -bit integer.
18
And on the other side of the equals sign, we have a match expression.
19
We call get a number, which returns an optional, and if we get the some variant, then we simply return the number.
20
But if we get the none variant, then we call break.
21
Calling break here breaks out of the outer loop, which this code is in, and never returns a value.
22
Since break doesn't return a value, this is a case where we would want to use the never type.
23
So the value break produces is the never type.
24
But here we can see that the none variable expects a U32 to be returned.
25
So in order to make this work, expressions of type never will coerce to any other type.
26
In this case, the never type produced by break will coerce to an unsigned 32 -bit integer, which will allow this code to compile.
27
The never type is also really useful in generic code.
28
In this case, if we're implementing from str for the string type, we know that the conversion will never fail.
29
So we want this error type to be the never type.
30
In other words, this from str function should return a result where self is going to be string
31
and error is going to be the never type.
32
And that allows us to write code like this, where we can call from str, pass in a string slice,
33
and expect that we'll always get back an OK variant.
34
The compiler won't force us to handle the error variant because that code is unreachable.
35
Now, we can also do the opposite.
36
Instead of defining a result type where the error variant is the never type,
37
we can define a result type where the OK variant is the never type.
38
And this would be useful for code like this.
39
In this case, we have a function which runs an infinite loop.
40
Inside of that loop, we get HTTP requests and handle them.
41
And because this is an infinite loop, we should only ever be returning an error variant if some type of connection issue happens.
42
Now, the never type has been part of the Rust language for a long time.
43
But it wasn't something you could write yourself in your own Rust code.
44
The issue tracking this feature to be able to use the never type in your own
45
Rust code has been open since 2016.
46
Now, the reason it took so long to stabilize the never type is because of edge cases.
47
Making this work for 90 % of code was trivial, but the last 10 % was impossibly hard.
48
This is because for some fundamental features like the never type, stabilizing it requires introducing breaking changes.
49
And handling those breaking changes is quite difficult.
50
Specifically, the Rust team wanted to update the infallible type.
51
The infallible type was an empty enum, and it served a similar purpose to the never type before it stabilized.
52
What the Rust team wanted to do was update this enum to be a type alias for the NeverType, but that broke a bunch of code.
53
So the solution they eventually came to was to do a staged rollout.
54
First it was introduced as a warning, and then in December 2025 it would error by default.
55
The next step was to implement the change in a Rust edition, which is the place where breaking changes are introduced,
56
and finally the third step was to make this change in all editions.
57
Now that third step is introducing a breaking change in all editions, so there were codebases that broke because of this change.
58
Luckily, the Rust team ran tests on all publicly available
59
Rust crates and then reached out to crate maintainers and helped them fix the issues.
60
So one lesson to learn here is that stabilizing features is genuinely difficult.
61
But I'm really glad the Rust team has closed this 10 -year -old hole in the type system.
62
If you're writing application -level
63
Rust, this change will likely not affect you.
64
But if you're writing
65
Rust libraries and you're using the infallible type, which now falls back to the never type,
66
type, then this change is definitely something to be aware of.
67
And no matter what type of Rust code you're writing,
68
I think we should all be grateful to the Rust maintainers for continuing to push these fundamental features over the finish line.
69
And if you yourself are interested in writing production -grade
70
Rust, check out our Rust Live Accelerator.
71
It's our tailored mentorship program where we help developers go beyond YouTube videos, write production -grade
72
Rust systems, and land their first Rust job.
73
You can join the waylist for our next cohort by heading over to letsgetrusty .com slash join
74
or by clicking the link in the pinned comment below.
75
When you join the waylist, we'll also send you our Rust Developer Roadmap as a small gift.
76
So tap the link, join the waylist, and I'll talk to you very soon.

アプリをダウンロード

流暢に話すために必要なすべて

AI発音採点文ごとに採点
IPA練習すべての音をマスター
単語学習自分の単語帳を作る
単語ゲーム遊びながら覚える
FOR YOU

おすすめ動画

このレッスンの語彙とスピーキングのポイント

このスピーキングレッスンは、動画「Rust just introduced a new "never" type」を教材にしています。 繰り返し出てくる語は次のとおりです:type, Rust, code, variant, error。 この動画には、シャドーイング用の文が76文、単語が1064語あります。 音声の長さは5:25です。 話す速さは速く、1分あたり約197語です。音のつながりや弱く発音される音が多くなります。 単語の84%は英語の頻出3,000語に含まれます。残りは練習の前に確認しておきましょう。

この動画の重要語彙

動画に出てくる覚えておきたい単語15語を、発音と意味つきで紹介します。

単語発音意味
variant 名詞/ˈvæɹi.ənt/変体, 変種
loop 名詞/luːp/ループ
introduce 動詞/ˌɪntɹəˈdus/紹介する, 引き合わせる
string 名詞/stɹɪŋ/紐
infinite 形容詞/ˈɪnfɪnɪt/途方もない, 巨大な
fundamental 形容詞/ˌfʌn.dəˈmɛn.təl/基本的な
implement 動詞/ˈɪmpləmənt/実行する, 実現する
variable 形容詞[ˈvæɹ.i.ə.bl̩]可変, 変えられる
lesson 名詞/ˈlɛs.ən/授業, 学科
grateful 形容詞/ˈɡɹeɪtf(ə)l/有難い, 感謝する
default 名詞/dɪˈfɔlt/デフォルト
pin 名詞/pɪn/ピン, 鋲
panic 名詞/ˈpænɪk/パニック, 恐慌
conversion 名詞/kənˈvɝʒən/改宗
usage 名詞/ˈjuːsɪd͡ʒ/使い方

動画に出てくる句動詞

単語意味
check out 動詞試験する, 検査する

この動画の文法

話し手がよく使っている文型を、動画の実際の表現とともに紹介します。

文型動画での表現
現在完了形 have/has + 過去分詞 — 過去の出来事が今も関係しているhave been · has been · has closed
受動態 be + 過去分詞 — 誰がするかより、何が起きるかに焦点を当てるbe returned · was introduced · are introduced
関係詞節 who / which + 節 — 人や物について情報を加えるnum, which is · integer, which will · edition, which is

注意したい発音

話し手はyou're, we'll, doesn'tなど、短縮形や弱形を12回使っています。聞こえたとおりの短い形で発音しましょう。

  • 「sh」と「zh」の音: conversion /kənˈvɝʒən/, documentation /ˌdɑkjəmɛnˈteɪʃən/, optional /ˈɑp.ʃə.nəl/, computation /ˌkɑmpjʊˈteɪʃn̩/, exclamation /ˌɛkskləˈmeɪʃn̩/
  • 長い単語(アクセントの位置に注意): fundamental /ˌfʌn.dəˈmɛn.təl/, developer /dɪˈvɛləpɚ/, genuinely /ˈd͡ʒɛn.ju.ɪn.li/, documentation /ˌdɑkjəmɛnˈteɪʃən/, infallible /ɪnˈfælɪbəl/

日本語話者が苦手な音:

  • /r/ と /l/ の区別 — /l/ は舌先を歯茎につけ、/r/ はどこにもつけない: variable [ˈvæɹ.i.ə.bl̩], grateful /ˈɡɹeɪtf(ə)l/, realistic /ˌɹɪəˈlɪs.tɪk/, trivial /ˈtɹɪv.i.əl/
  • /v/ — /b/ にならないように、上の歯を下唇に当てる: variant /ˈvæɹi.ənt/, variable [ˈvæɹ.i.ə.bl̩], conversion /kənˈvɝʒən/, developer /dɪˈvɛləpɚ/, trivial /ˈtɹɪv.i.əl/
  • /f/ — 「フ」ではなく、上の歯と下唇で出す: define /dɪˈfaɪn/, infinite /ˈɪnfɪnɪt/, fundamental /ˌfʌn.dəˈmɛn.təl/, grateful /ˈɡɹeɪtf(ə)l/, default /dɪˈfɔlt/

この動画での練習方法

  1. まず声を出さずに動画を最後まで聞き、知らない単語をメモします。
  2. まず0.75倍速で一文ずつシャドーイングし、慣れてきたら通常の速度に戻します。
  3. 自分の声を録音して元の音声と比べます。variant, loop, introduceなどの単語に特に注意しましょう。

シャドーイングとは?英語上達に効果的な理由

シャドーイング(Shadowing)は、もともとプロの通訳者養成プログラムで開発された言語学習法で、多言語習得者として知られるDr. Alexander Arguelles によって広く普及されました。方法はシンプルですが非常に効果的:ネイティブスピーカーの英語を聞きながら、1〜2秒の遅延で声に出してすぐに繰り返す——まるで「影(shadow)」のように話者を追いかけます。文法ドリルや受動的なリスニングと異なり、シャドーイングは脳と口の筋肉が同時にリアルタイムで英語を処理・再現することを強制します。研究により、発音精度、抑揚、リズム、連音、リスニング力、そして会話の流暢さが大幅に向上することが確認されています。IELTSスピーキング対策や自然な英語コミュニケーションを目指す方に特におすすめです。

シャドーイングのやり方: ステップ別の完全ガイドを読む →